G
Guest
Hi,
I have a code as shown below
Private Sub Workbook_Open()
With ThisWorkbook
.Worksheets("HS OVERVIEW").Activate
.Unprotect ("pas")
.Worksheets("LookUpValues").Visible = xlSheetVeryHidden
.Protect "pas", Structure:=True, Windows:=False
.Save
End With
End Sub
When I open my appliacation in excel it throws me error
Run-time error '1004'
Method 'Save' of object '_Workbook' failed
Can't figure out why this is happening.
Help is appreciated.
Thanks,
Neelam
I have a code as shown below
Private Sub Workbook_Open()
With ThisWorkbook
.Worksheets("HS OVERVIEW").Activate
.Unprotect ("pas")
.Worksheets("LookUpValues").Visible = xlSheetVeryHidden
.Protect "pas", Structure:=True, Windows:=False
.Save
End With
End Sub
When I open my appliacation in excel it throws me error
Run-time error '1004'
Method 'Save' of object '_Workbook' failed
Can't figure out why this is happening.
Help is appreciated.
Thanks,
Neelam