Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default how to detect if user has a dialogbox open

My timer macro reads valus from a workbook on one instance of excel and
updates another workbook in another instance of excel.
Sometimes data is large so i turn off screen updating on the recieveing
workbook.
When the user opens a dialogbox in one excel and the macro is running, I get
a ScreenUpdating failed error.
This also happens when the user is editing a cell and the macro runs.

Is there anyway i can detect an open dialogbox ??


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default how to detect if user has a dialogbox open

Hi,
Could you set a public variable to True when the DialogBox opens and
False when it closes. Then your Timer macro would not run if the
variable was True.
Don't know about the cell editing problem - perhaps something can be
done with the Worksheet_Change event.

regards
Paul


"Von Shean" wrote in message ...
My timer macro reads valus from a workbook on one instance of excel and
updates another workbook in another instance of excel.
Sometimes data is large so i turn off screen updating on the recieveing
workbook.
When the user opens a dialogbox in one excel and the macro is running, I get
a ScreenUpdating failed error.
This also happens when the user is editing a cell and the macro runs.

Is there anyway i can detect an open dialogbox ??

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default how to detect if user has a dialogbox open

I want make a clarification. The dislog box is not my dialog box...it could
be any excel dialog box also.

I have a workaround for detecting the editing of cell. This is to check if
File-Open is enabled. But i dont think it as a good solution

Any comments......

"Paul Robinson" wrote in message
om...
Hi,
Could you set a public variable to True when the DialogBox opens and
False when it closes. Then your Timer macro would not run if the
variable was True.
Don't know about the cell editing problem - perhaps something can be
done with the Worksheet_Change event.

regards
Paul


"Von Shean" wrote in message

...
My timer macro reads valus from a workbook on one instance of excel and
updates another workbook in another instance of excel.
Sometimes data is large so i turn off screen updating on the recieveing
workbook.
When the user opens a dialogbox in one excel and the macro is running, I

get
a ScreenUpdating failed error.
This also happens when the user is editing a cell and the macro runs.

Is there anyway i can detect an open dialogbox ??



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
Detect open-state of xls from outside Excel Waterloo Excel Discussion (Misc queries) 2 May 6th 09 10:01 AM
DialogBox Greg[_12_] Excel Programming 2 September 17th 03 01:41 AM
How to detect Acrobat Distiller open Heiko Excel Programming 1 August 6th 03 02:27 AM
How to detect Acrobat Distiller open Bill Li Excel Programming 0 August 6th 03 02:25 AM
Detect if file is open Chad[_6_] Excel Programming 4 July 9th 03 05:05 AM


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