LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Converting numbers to column letters

Thanks...Simple, but effective
-----Original Message-----
Try using something like

Range(Cells(1, i), Cells(1, j)).EntireColumn

where i and j are your numbers. No need to get the

string, just use the
range directly.

--
Regards,

Juan Pablo González

"Hawk" wrote in

message
...
In a VBA procedure, I have two integers representing
columns. For example, integers are 1 and 5 are

referring
to columns A and E respectively. From the two

integers, I
would like to create a string representing the column
letters.

Basically,
1 and 5 should result in "A:E"
2 and 6 should result in "B:F"
3 and 27 should result in "C:AA"

I will be using the string to reference a range of
columns...Range("A:E"). Any ideas would be greatly
appreciated. TIA...



.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting text to cell reference and column letters to numbers -please help Jason Lang Excel Worksheet Functions 6 March 6th 08 06:18 PM
Converting letters to numbers Teacher Excel Worksheet Functions 2 June 8th 06 12:00 PM
How can I change column numbers back to column letters? Space Elf Excel Worksheet Functions 3 March 2nd 06 09:35 PM
converting letters to numbers trav Excel Discussion (Misc queries) 9 February 20th 06 10:36 PM
row numbers & column letters ALOlson21 Excel Discussion (Misc queries) 3 December 10th 04 05:45 PM


All times are GMT +1. The time now is 05:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"