I have found a lot of solutions for my problem, the strange thing is that when I change the line it works but when I run it again it fails until I change the line again. If this makes no sense good because it doesn't make sense to me either. I have done this a million times and it has always worked.
Here are all of my solutions, one will work then another and so on...
PLEASE SOMEONE WHY ISN'T IT CONSISTANT?
I believe I have tried every combination, I haven't been so frustrated in a very long time!
Here are all of my solutions, one will work then another and so on...
PLEASE SOMEONE WHY ISN'T IT CONSISTANT?
Code:
Sheets(ActiveSheet.Name).Columns(intCurCol).Insert Shift:=xlToRight, _
CopyOrigin:=xlFormatFromLeftOrAbove 'Adds a column before the Revenue column
Code:
Set wsThis = ActiveSheet ' Select the active worksheet
wsThis.Select
wsThis.Columns(intCurCol).Insert Shift:=xlToRight, _
CopyOrigin:=xlFormatFromLeftOrAbove 'Adds a column before the Revenue column
Code:
Set wsThis = ActiveSheet ' Select the active worksheet
wsThis.Select
wsThis.Columns(intCurCol).select
Selection.Insert Shift:=xlToRight, _
CopyOrigin:=xlFormatFromLeftOrAbove 'Adds a column before the Revenue column
Code:
Activesheet.select
ActiveSheet.Cells(1, intCurCol).EntireColumn.Insert Shift:=xlToRight, _
CopyOrigin:=xlFormatFromLeftOrAbove 'Adds a column before the Revenue column
Code:
wsThis.Select
wsThis.Cells(1, intCurCol).EntireColumn.Insert Shift:=xlToRight, _
CopyOrigin:=xlFormatFromLeftOrAbove 'Adds a column before the Revenue column
I believe I have tried every combination, I haven't been so frustrated in a very long time!