cogswel__cogs
Board Regular
- Joined
- Jan 3, 2018
- Messages
- 180
Hi,
I am trying to save a tab as a new sheet with password protection and outline enabled.
When I open the saved workbook, the tab is there and protected but the outline is not enabled.
Can anyone tell me what I am doing wrong.
Thanks for any help.
Sheets("Dem").Visible = True
Sheets("Dem").Copy
ActiveSheet.Protect Password:="astro", UserInterfaceOnly:=True
ActiveSheet.EnableOutlining = True
Application.ActiveWorkbook.SaveAs Filename:=xPath & "\Individual\" & v & z & "\" & VC & ".xlsx"
Application.ActiveWorkbook.Close False
End If
I am trying to save a tab as a new sheet with password protection and outline enabled.
When I open the saved workbook, the tab is there and protected but the outline is not enabled.
Can anyone tell me what I am doing wrong.
Thanks for any help.
Sheets("Dem").Visible = True
Sheets("Dem").Copy
ActiveSheet.Protect Password:="astro", UserInterfaceOnly:=True
ActiveSheet.EnableOutlining = True
Application.ActiveWorkbook.SaveAs Filename:=xPath & "\Individual\" & v & z & "\" & VC & ".xlsx"
Application.ActiveWorkbook.Close False
End If