View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
joeu2004 joeu2004 is offline
external usenet poster
 
Posts: 2,059
Default VBA range selection question

On May 8, 10:27*am, Gord Dibben wrote:
Can you "more concise" this one?

Function GetColNum(myColumn As String) As Long
* * GetColNum = Columns(myColumn & ":" & myColumn).Column
End Function


One way:

GetColNum = Range(myColumn & 1).Column