Dear members,
I want to apply below code to specific sheets. For example I have 3 sheets and I want it to be applied for sheet1 and sheet3
[
[/CODE]
as you can see this code can be used only for activesheet.
could you please help me doing this changes ?
Thanks and best regards,
I want to apply below code to specific sheets. For example I have 3 sheets and I want it to be applied for sheet1 and sheet3
[
VBA Code:
[CODE=vba]Sub blankcells()
Application.ScreenUpdating = False
Dim lr As Long
With ActiveSheet
lr = .Columns("F:G").Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
On Error Resume Next
With .Range("F2:F" & lr)
.SpecialCells(xlCellTypeBlanks).Formula = "=RC[+1]"
.Value = .Value
End With
On Error GoTo 0
End With
Application.ScreenUpdating = True
End Sub
as you can see this code can be used only for activesheet.
could you please help me doing this changes ?
Thanks and best regards,