I am attempting to remove highlighted ranges in ThisWorkbook after carrying out copy/paste operations between two workbooks. I am pasting to ThisWorkbook.
The copy workbook ranges are not relevant for this purpose.
My approach is as follows:
(Running it selects the first unlocked cell as required, but not the first blank unlocked cell. Any assistance is welcome!)
Private Sub Select_Next_Unlocked_Blank_Cell()
'Use this to prevent cell highlight/shadow overhangs (from copy/pastes)
On Error Resume Next
Application.FindFormat.Locked = False
Dim rng As Range
Set rng = ActiveSheet.Cells.Find(What:="", After:=Range("a1"), LookIn:=xlValues, Lookat:=xlWhole, SearchDirection:=xlNext, SearchFormat:=True)
rng.Select
End Sub
The copy workbook ranges are not relevant for this purpose.
My approach is as follows:
(Running it selects the first unlocked cell as required, but not the first blank unlocked cell. Any assistance is welcome!)
Private Sub Select_Next_Unlocked_Blank_Cell()
'Use this to prevent cell highlight/shadow overhangs (from copy/pastes)
On Error Resume Next
Application.FindFormat.Locked = False
Dim rng As Range
Set rng = ActiveSheet.Cells.Find(What:="", After:=Range("a1"), LookIn:=xlValues, Lookat:=xlWhole, SearchDirection:=xlNext, SearchFormat:=True)
rng.Select
End Sub