Hi Loungers,
I’m having trouble with the syntax needed to hide a range of columns. If the columns were known, I’d use something per the macro recorder like
Columns(“B:C”).Select
Range(“B7”).Activate
Selection.EntireColumn.Hidden = True
But the columns are not known (they can change whenever I run the macro). So the macro prompts for the set of columns such as
first_col_hide = inputbox(“enter first col”,,”xxx”)
last_col_hide = inputbox(“enter last col”,,”xxx”)
Using the 2 variables above (which are dim’d as strings) per the syntax from the macro recorder does not work. I must be having a brain fog bcs, after trying several combinations, I can’t still figure it out. I’m wondering if I need to use an offset in this case ???
TIA
Fred