Is it possible to insert 30 blank columns using VBA code every 30 lines? I've resorted to doing it 720 times manually. and will have to do it gain.insert blank columns.xlsb
Is it possible to insert 30 blank columns using VBA code every 30 lines? I've resorted to doing it 720 times manually. and will have to do it gain.insert blank columns.xlsb
Just incase someone is able to assist, please show me how I would alter it in the future to start from any column.
The column starts from the last column working back word to column 5
![]()
Option Explicit Sub insertcolumns() Dim i& Application.ScreenUpdating = 0 With ActiveSheet For i = .Cells(1, .Columns.Count).End(xlToLeft).Column To 5 Step -30 .Columns(i).Resize(, 30).Insert Next End With Application.ScreenUpdating = True End Sub
Last edited by AB33; 04-02-2014 at 02:13 PM.
Thank you Soooooo much.
Can I replace to the end with a specific column. Column TJ to be specific.
If you mean from a fixed range to end.
![]()
For i = .Range("TJ1").Column To 5 Step -30
Thanks again!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks