Solved: Select columns to copy
I am trying to copy all active columns and paste to another worksheet. When I do this without a macro, it works, but I cannot get the same result with the macro. The following macro was recorded. When I clicked on column B and hit end, right, it chose columns B-I which are all of the active columns and inserted them on the other sheet. However, when I tried running the macro, it only copied columns B-E. HELP PLEASE!
[VBA]Sheets("Sheet1").Select
Columns("B:B").Select
Range("B2").Activate
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Sheet2").Select
Columns("B:B").Select
Range("B2").Activate
Selection.Insert Shift:=xlToRight[/VBA]