This works:
Formula:
Columns(Range("sheet1!AE2").Value).Select
but instead of AE2 I want to use selection.value
Tried this but doesn't work:
Formula:
Columns(Range("sheet1!").selection.Value).Select
This works:
Formula:
Columns(Range("sheet1!AE2").Value).Select
but instead of AE2 I want to use selection.value
Tried this but doesn't work:
Formula:
Columns(Range("sheet1!").selection.Value).Select
Maybe:
![]()
Columns(Range("sheet1!" & selection.Value).Select
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
![]()
Sub b() Sheets(1).Select Columns(Selection.Value).Select End Sub
If solved remember to mark Thread as solved
![]()
Sheets("sheet1").Range(Selection.Value).EntireColumn.Select
Note that an easy mistake to make is to press Enter to confirm the value in the cell and then try and run the macro.
More secure is, for example:
![]()
Sheets("sheet1").Range(Range("C8").Value).EntireColumn.Select
Regards, TMS
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks