Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How to retrieve Excel column as a string (AAA instead of 703)

Hello

I was using GetProperty to retrieve the column on an Excel spreadsheet, but
it returns me the number of column ..

Is there a way I get the corresponding column name, I mean using the letters
instead of the number? (like getting AAA instead of 703, or ZZ instead of
702).

--
thanks so much.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How to retrieve Excel column as a string (AAA instead of 703)

Hi Aggie

You can use this function from Chip Pearson

Function ColumnLetter(R As Range) As String
ColumnLetter = Left(R.Address(False, False), _
1 - (R.Column 26) - (R.Column 702))
End Function




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Aggie" wrote in message ...
Hello

I was using GetProperty to retrieve the column on an Excel spreadsheet, but
it returns me the number of column ..

Is there a way I get the corresponding column name, I mean using the letters
instead of the number? (like getting AAA instead of 703, or ZZ instead of
702).

--
thanks so much.

Reply
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
How to retrieve the value within string? Eric Excel Discussion (Misc queries) 11 April 20th 10 12:47 PM
How to retrieve certain char within a string? Eric Excel Discussion (Misc queries) 1 July 3rd 07 03:02 AM
How to retrieve certain text from string? Eric Excel Worksheet Functions 2 December 3rd 06 02:06 PM
How to retrieve character from a string for excel? Eric Excel Worksheet Functions 3 September 4th 06 11:22 AM
How to retrieve character from a string for excel? Eric Excel Discussion (Misc queries) 1 September 4th 06 08:20 AM


All times are GMT +1. The time now is 06:56 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"