happyhungarian
Active Member
- Joined
- Jul 19, 2011
- Messages
- 254
- Office Version
- 365
- Platform
- Windows
Hi, I'm using the following code to insert a new column at the end of existing columns. What I was hoping to do is prior to inserting the new column, it would copy what's currently the last column and either insert a new copy of that column at the end OR first insert the new column then paste the format/content of the neighboring column to it.
Sub INSERT_COL()
Dim LastCol As Long
LastCol = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column
Columns(LastCol).Insert Shift:=xlToRight
End Sub
Sub INSERT_COL()
Dim LastCol As Long
LastCol = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column
Columns(LastCol).Insert Shift:=xlToRight
End Sub