I am trying to highlight an entire column using vba code similar to:
Columns("A:A").select
but I would like to replace the "A" with a variable I which contains the numeric value of the columns, so A=1, B=2, etc.
Another issue is that on my sheet I also have lots of cells that are merged. so if I use a code like:
I=2
Columns(i).select
then it also highlight all columns of a merged cell that fall under the same column. I would like it so it just highlights ONE COLUMN, column I (variable). Something like a person just simply clicking the column to highlight entire selected column in excel sheet.
The code doesn't have to be "Columns" code, it was just an example and the one I know that works the way I kinda need it to be.
Thanks