VBA range selection question
Thanks Rick
Gord
On Sun, 8 May 2011 16:28:37 -0400, "Rick Rothstein"
wrote:
Can you "more concise" this one?
Function GetColNum(myColumn As String) As Long
GetColNum = Columns(myColumn & ":" & myColumn).Column
End Function
The Columns property does not require the repeated, colon delimited string
like the Range does...
Function GetColNum(myColumn As String) As Long
GetColNum = Columns(myColumn).Column
End Function
Rick Rothstein (MVP - Excel)
|