Virgo_anil
New Member
- Joined
- Jun 25, 2019
- Messages
- 3
Below Macro is giving error message. Need urgent help..
Sub sbUnProtectSheet()
ActiveSheet.Unprotect "9999"
Set SourceRange = ActiveSheet.Range("B10:H10")
Set FillRange = ActiveSheet.Range("B11:H39")
SourceRange.AutoFill.FillRange
Range("B11").Select
ActiveSheet.Protect "9999", True, True
End Sub
Sub sbUnProtectSheet()
ActiveSheet.Unprotect "9999"
Set SourceRange = ActiveSheet.Range("B10:H10")
Set FillRange = ActiveSheet.Range("B11:H39")
SourceRange.AutoFill.FillRange
Range("B11").Select
ActiveSheet.Protect "9999", True, True
End Sub