The following VBA code copies the red bordered cells (blue) and inserts them into the green bordered cells.
Sub ColumnCopyInsert()
Range("D:E").Copy
Range("D2").End(xlToRight).Offset(-1, 1).Insert xlToRight
End Sub
I would like to add a function to hide column D and E.
If I hide the two columns and copy/insert new columns with my VBA button, they are also hidden.
The goal is to hide D, E not the new columns.
