Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Excel - BeforeClose Problem...

I have the following problem with an Excel Spreadsheet that I use.

Need to be able to get round an issue that is caused by where the
Excel file is stored. The excel file is attached against a Lotus
Notes program.

I have a macro that runs when the file is closed down currently, but
when this is opened in Read Only through Lotus Notes window it causes
Excel to crash and one of the following error message usually occurs
(Run time error 9 or Run time error 1004)

I don't know if this is possible, but one way to get around this would
be to have the following criteria applied to the macros?

1) When Cell A1 within Doc Sheet 1 has data in, once the work book is
closed Protect the whole workbook and password protect.

2) When the sheet is opened in 'Edit' mode allow Private Sub
Workbook_BeforeClose to run when the sheet is closed but then delete
it.

Therefore what will be happening is the macro BeforeClose will almost
be generated on the fly

Many Thanks, Al. ( )
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
Colon at the end of excel file name(ex: problem.xls:1, problem.xls financeguy New Users to Excel 2 January 15th 10 01:15 AM
beforeclose placement Curt Excel Discussion (Misc queries) 9 August 27th 07 08:00 PM
PASSWORD PROTECT BEFORECLOSE KandK Excel Discussion (Misc queries) 4 June 8th 06 09:34 AM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
Help with "beforeclose" ? PPM at Brackmills Excel Discussion (Misc queries) 3 April 14th 06 03:00 PM


All times are GMT +1. The time now is 08:51 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"