Code: Select all
Sub RemoveBlanks()
Dim r1 As Long
Dim r2 As Long
Dim rgLastR As Range
On Error Resume Next
Application.ScreenUpdating = False
ActiveSheet.AutoFilterMode = False
Columns("C:C").Select
Selection.Cut
Columns("I:I").Select
Selection.Insert Shift:=xlToRight
Columns("G:G").Select
Selection.Cut
Columns("D:D").Select
Selection.Insert Shift:=xlToRight
Columns("F:F").Select
Selection.Cut
Columns("E:E").Select
Selection.Insert Shift:=xlToRight
Cells.Select
ActiveSheet.UsedRange.RemoveDuplicates Columns:=Array(1, 2, 3, 4, 5, 6 _
, 7, 8, 9, 10, 11), Header:=xlYes
Columns("H:H").Select
Selection.Delete Shift:=xlToLeft
There used to be a company name in column B, but that information doesn't exist in the data. This field was used in only one query, so I deleted that reference. I MAY NEED to insert a blank column at B, but I believe that won't be necessary.
If I were to insert a blank column what would the code lines be?