Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get columns as "A, B, C etc"
Hi
If I use Range.Column I get numbers, but how do I do if I want to get the letters? Regards /Niklas |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get columns as "A, B, C etc"
Niklas,
You can use a function like the following: Function ColLetter(Rng As Range) As String ColLetter = Left(Rng.Address(False, False), 1 - (Rng.Column 26)) End Function -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Niklas" wrote in message ... Hi If I use Range.Column I get numbers, but how do I do if I want to get the letters? Regards /Niklas |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get columns as "A, B, C etc"
Hello Niklas,
Please see the following Microsoft Knowledge base articles: 198112 HOWTO: Convert Indices (row,col) into Excel-Style A1:C1 Strings http://support.microsoft.com/?id=198112 198144 INFO: Convert (row,col) Indices into Excel-Style A1:C1 Strings http://support.microsoft.com/?id=198144 -------------------- From: "Niklas" Subject: Get columns as "A, B, C etc" Date: Thu, 7 Aug 2003 08:05:52 -0700 If I use Range.Column I get numbers, but how do I do if I want to get the letters? Regards /Niklas Regards, Chris Jensen[MSFT] This posting is provided “AS IS” with no warranties, and confers no rights. Are you secure? For information about the Microsoft Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit <http://www.microsoft.com/security. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
How do display a "+" or "-" sign when hiding columns? | Setting up and Configuration of Excel | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |