Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I recorded a macro which gave
Columns("A:M").Select However, I need my code to be a little adaptive so I initially determine the last column in the row Range("A1").Select Selection.End(xlToRight).Select lstColCell = ActiveCell.Address lstCol = ActiveCell.Column As such, lstCol returns a number, not a letter like the nicely generate macro code requires. How can I use the lstCol in the macro code? I tried Columns("1:" & lstCol).Select But this didn't work. Thank you for the help Qb, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding a number to a letter of the alphabet to get a letter | Excel Worksheet Functions | |||
How do i set up a list that sorts as Number/letter/number in orde | Excel Discussion (Misc queries) | |||
change headers from letter to number/number to letter | Excel Worksheet Functions | |||
column header changed from letter to number, how return to letter | Excel Discussion (Misc queries) | |||
Auto number w/ different letter-number combos in same column | Excel Worksheet Functions |