Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This returns the column label for a specified column index...
Function GetColLabel$(ColNum&) Split(Replace(Columns(ColNum).Address,"$",""),":") (0) End Function This returns the column range address for a specified column index... Function GetColRangeAddr$(ColNum&) Columns(ColNum).Address End Function This returns the column index of the 1st column index of a specified range... Function Get_FirstColNum&(Addr$) Dim sLabel$ sLabel = Split(Split(Addr, ":")(0), "$")(1) GetColNum = Columns(sLabel).Column End Function This returns the column index of the last column index of a specified range... Function Get_LastColNum&(Addr$) Dim sLabel$ sLabel = Split(Split(Addr, ":")(1), "$")(1) GetColNum = Columns(sLabel).Column End Function -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Get Column Letter of Active Cell in VBA | Excel Discussion (Misc queries) | |||
Get Column Letter of Active Cell in VBA | Excel Discussion (Misc queries) | |||
How to replace column letter in refferences with a function using the old column letter? | Links and Linking in Excel | |||
How to replace column letter in refferences with a function using the old column letter? | Excel Worksheet Functions | |||
column header changed from letter to number, how return to letter | Excel Discussion (Misc queries) |