Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Workbook_BeforeClose - Cancel not working

Hi

(XL2000)
Something very strange. I've programmed a BeforeClose event procedure
to check data and prevent the workbook from closing if the data's
wrong. I'm sure it worked until today. Now it doesn't. It clearly
shows that data is incorrect, but then the "Save changes to .....XLS?"
box comes up, and unless I click Cancel, the workbook closes!

I've found a possible solution to this, and I'm posting it here FYI -
but would welcome any comments or confirmation from anyone out there.
I've got TWO Excels: one on my machine, which I use for development,
and one on a Citrix box (urrghhh! can't control any of the
settings...).

Now my local machine's Excel is version 9.0.2720.
The Citrix version number is 9.0.6926 SP-3.

It's the Citrix version (the _more_ recent version) that's causing the
problem.

Is this a known issue that appeared in SP3, or is there some "ignore
anything clever the VBA programmer does" setting somewhere that's
enabled in the Citrix version? I can't find anything in the Options -
or in the MS KB.

cheers


Seb

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
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work gpmichal Setting up and Configuration of Excel 1 May 12th 09 02:33 AM
BeforeDoubleClick Cancel=True not working Reggie Excel Programming 1 September 20th 05 03:43 AM
Cancel Macro is user selects 'cancel' at save menu Mark Excel Programming 1 April 6th 05 05:45 PM
Detecting a cancel on Workbook_BeforeClose event? Don Wiss Excel Programming 3 January 18th 05 12:49 PM
Workbook_Open and Workbook_BeforeClose not working Don[_19_] Excel Programming 0 August 10th 04 06:58 PM


All times are GMT +1. The time now is 12:38 PM.

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

About Us

"It's about Microsoft Excel"