Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Near the end of my procedure (which is located in PERSONAL.XLS) , I have the
following lines of code: Application.DisplayAlerts = False ActiveWorkbook.ProtectSharing SharingPassword:="password" ActiveWorkbooks.Close SaveChanges:=False Application.DisplayAlerts = True (Please note that my procedure starts out by opening a workbook located on a network shared drive.) When Excel executes the 3rd line of code above, my procedure stops and I get the following error message: Run-time error. This workbook contains macros recorded or written in Visual Basic. Macros cannot be viewed or edited in shared workbooks. Given that Application.DisplayAlerts has been set to False, I don't understand why the error message is appearing. Does anyone have any ideas on how I can modify the lines above to prevent the error message from appearing? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Solver Error - an unexpected internal error has occurred | Excel Discussion (Misc queries) | |||
Solver Error - an unexpected internal error has occurred | Excel Discussion (Misc queries) | |||
Unexpected message when first opening this 2007 Excel file | Excel Discussion (Misc queries) | |||
Autorecover: Unexpected Error message recipients unite... | Excel Discussion (Misc queries) | |||
Unexpected error message on closing an Excel file | Excel Discussion (Misc queries) |