After I password the excel sheet the autofilter portions do not work on my excel sheet.
Microsoft website said add the following but I can't get it to work.
Private Sub Workbook_Open()
Sheet1.Protect password:="sas", DrawingObjects:=True, contents:=True, Scenarios:=True, userinterfaceonly:=True
Sheet1.EnableAutoFilter = True
End Sub
Thanks
Peter
Microsoft website said add the following but I can't get it to work.
Private Sub Workbook_Open()
Sheet1.Protect password:="sas", DrawingObjects:=True, contents:=True, Scenarios:=True, userinterfaceonly:=True
Sheet1.EnableAutoFilter = True
End Sub
Thanks
Peter