I have F12 and G12 as merged cells in an xls file that is exported from Navision. Clicking on F12 and pressing CTRL-Space to select the whole merged area (F:G), it selects a bigger area (A:J) because of some merged cells above F12.
But if I click on the column letters F and G, I can select only these two columns.
I recognize that F12 is a merged cell with Activecell.MergeArea.Columns.Count that gives 2,
and I have the address from Activecell.MergeArea.address ($F$12:$G$12)
How can I imitate in VBA the clicking of F and G and select only these two columns and not A:J?
I used range(Activecell.MergeArea.address).EntireColumn.Select, but it selects again A:J
Thank you
But if I click on the column letters F and G, I can select only these two columns.
I recognize that F12 is a merged cell with Activecell.MergeArea.Columns.Count that gives 2,
and I have the address from Activecell.MergeArea.address ($F$12:$G$12)
How can I imitate in VBA the clicking of F and G and select only these two columns and not A:J?
I used range(Activecell.MergeArea.address).EntireColumn.Select, but it selects again A:J
Thank you