If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Get the Letter Value of a Colm from activecell.column?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-04, 14:23
mikezcg mikezcg is offline
Registered User
 
Join Date: Oct 2003
Posts: 311
Get the Letter Value of a Colm from activecell.column?

i have some code that lands me in a certain colm. How can i get the Column letter, from my activecell location?


ie : activecell.column =1 is col A

?
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 07:23
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Try

ColLetter = Mid(ActiveCell.Address, 2, 1)

ActiveCell.Address returns the address in $A$! format, therefore you need to look at positio 2

Hope this is what you want

MTB
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 08:40
mikezcg mikezcg is offline
Registered User
 
Join Date: Oct 2003
Posts: 311
Perrrrrfect,


Tnks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On