Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Column letter to index
How do I convert column letters to column index? I have a VBA routine that
reads cells that contains destination cells. For instance, cell C2 may have the letter D, which indicats that column D is where the output should go. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Column letter to index
In options you can set R1C1 reference style where the columns are numbered
instead of having alpha characters. However, I am not certain that is what you are referring to because I am a bit confused by your description of the problem. Could you post some of the code so that we can see exactly what you are referring to. -- Regards, OssieMac "Radon" wrote: How do I convert column letters to column index? I have a VBA routine that reads cells that contains destination cells. For instance, cell C2 may have the letter D, which indicats that column D is where the output should go. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Column letter to index
Maybe...
'-- Sub MakeItNumeric() Dim N As Long N = Columns(Range("C2").Value).Column MsgBox N End Sub -- Jim Cone Portland, Oregon USA "Radon" wrote in message How do I convert column letters to column index? I have a VBA routine that reads cells that contains destination cells. For instance, cell C2 may have the letter D, which indicats that column D is where the output should go. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Column letter to index
Hi,
In VBA code this will put Stuff cell D1 if the letter D is in C2 of the active sheet. Sub test() Range([C2] & "1") = "Stuff" End Sub -- If this helps, please click the Yes button Cheers, Shane Devenshire "Radon" wrote: How do I convert column letters to column index? I have a VBA routine that reads cells that contains destination cells. For instance, cell C2 may have the letter D, which indicats that column D is where the output should go. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I turn excel columns from column number to column letter? | Setting up and Configuration of Excel | |||
Translate Column Index Num to Letter | Excel Discussion (Misc queries) | |||
How to replace column letter in refferences with a function using the old column letter? | Links and Linking in Excel | |||
How to replace column letter in refferences with a function using the old column letter? | Excel Worksheet Functions | |||
column header changed from letter to number, how return to letter | Excel Discussion (Misc queries) |