PC Review


Reply
Thread Tools Rate Thread

convert culomn letter from number

 
 
thread
Guest
Posts: n/a
 
      15th Feb 2007
Hi All,

I'm trying to convert or to find a way to get the column letter from
its column number index for the range use with vba
any ideas?

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      15th Feb 2007

'-----------------------------------------------------------------
Function ColumnLetter(Col As Long)
'-----------------------------------------------------------------
Dim sColumn As String
On Error Resume Next
sColumn = Split(Columns(Col).Address(, False), ":")(1)
On Error GoTo 0
ColumnLetter = sColumn
End Function


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"thread" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I'm trying to convert or to find a way to get the column letter from
> its column number index for the range use with vba
> any ideas?
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert number to letter 123 to ABC Amin Microsoft Excel Programming 4 19th May 2010 08:06 PM
Convert Letter to Number ExcelMS Microsoft Excel Worksheet Functions 2 24th May 2008 04:47 PM
how to convert number to letter =?Utf-8?B?Z2hvc3Q=?= Microsoft Access 2 23rd Mar 2007 06:10 PM
Convert a letter to a number =?Utf-8?B?c3Jvc3MwMDI=?= Microsoft Excel Misc 2 14th Oct 2006 02:04 AM
How do I convert a given number into a letter? =?Utf-8?B?dm9ydGV4MDAwMQ==?= Microsoft Excel Worksheet Functions 5 8th Sep 2005 10:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:42 AM.