I have a report in which I have to insert a new column between the last and second to last columns. However, when I try to insert the the column, I get a type mismatch error.
Dim columnInsert As Range
Dim rangeAverage As Range
Set columnInsert = Range("X80:X95")
Set rangeAverage = Range("AA1")
Columns(columnInsert:rangeAverage).Insert Shift:=xlToRight
The problem pointed out by the editor is this line:
Columns(columnInsert:rangeAverage).Insert Shift:=xlToRight
Basically all I want to do is insert 15 long blank column between AA1 and Z, but I keep running into problems.