Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Abu
Couple of UDF's. Function GetColNum(myColumn As String) As Integer GetColNum = Columns(myColumn & ":" & myColumn).Column End Function usage.........=getcolnum("a") returns 1 Function GetColLet(ColNumber As Integer) As String GetColLet = Left(Cells(1, ColNumber).Address(False, False), _ 1 - (ColNumber 26)) End Function usage........=getcollet(27) returns AA Gord Dibben MS Excel MVP On 10 Sep 2006 22:39:22 -0700, wrote: hi, i want to recieve the column number ( ranging from 1 to 256 ) while the input will be the column name (ranging from A to IV ). please provide me a macro solution to reach the above mentioned requirement. Thanks and Regards Abu. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro | Excel Discussion (Misc queries) | |||
Multiply two columns in Excel or one column by one number | New Users to Excel | |||
Need to Improve Code Copying/Pasting Between Workbooks | Excel Discussion (Misc queries) | |||
Positioning Numeric Values Resulting from 6 Column Array Formula | Excel Worksheet Functions | |||
Return Count for LAST NonBlank Cell in each Row | Excel Worksheet Functions |