Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Run time error 1004

I have my workbook shared...and have been getting a Run
Time Error 1004. I've been trying to narrow down what is
causing it in my code and it appears that it is something
with the code below:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True
End Sub

I understand sharing a workbook can make things a bit
finicky...but what am I doing wrong here?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time error '1004' goconnor Excel Discussion (Misc queries) 8 July 18th 08 12:50 AM
run time error 1004 jimbob Excel Discussion (Misc queries) 1 August 5th 06 02:29 PM
Run Time Error '1004' Carpie Excel Discussion (Misc queries) 3 June 5th 06 07:04 PM
Run time error 1004 cinvic Excel Discussion (Misc queries) 8 February 21st 06 12:36 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM


All times are GMT +1. The time now is 08:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"