Good afternoon, just revisiting VBA after some time away. I'm trying to cycle through worksheets in a workbook but I'm having trouble with a couple of things.
1) I want to replace this code with something less Selecty
2) But unless each WS is active then this sort of code fails anyway.
I think I've found a way to use ws.columns in my "Replace":
Any suggestions?[tt][/tt]
Many thanks,
D€$
1) I want to replace this code with something less Selecty
Code:
WS.Columns("K:K").Select
WS.Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.EntireColumn.Delete
2) But unless each WS is active then this sort of code fails anyway.
I think I've found a way to use ws.columns in my "Replace":
Code:
With WS.Columns("F:F")
.Replace What:="DL", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End With
Any suggestions?[tt][/tt]
Many thanks,
D€$