How can I alter this code so it inserts a column after columns containing Teacher Judgement not before?
Thanks
Code:
Sub inscols2()
Dim A As Range
Dim s As String
Set A = Rows(2).Find(what:="Teacher Judgement", after:=Cells(2, 1), LookIn:=xlValues, lookat:=xlPart, _
SearchDirection:=xlPrevious, MatchCase:=False, SearchFormat:=False)
If Not A Is Nothing Then
s = A.Address
Do
A.Resize(, 1).EntireColumn.Insert
s = Range(s).Offset(, 1).Address
Set A = Rows(2).FindNext(A)
Loop Until A.Address = s
End If
End Sub
Thanks
Last edited: