Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TY TY is offline
external usenet poster
 
Posts: 5
Default Disable recalulcation upon open

Is there anyway in a macro that I can disable recalculation of UDF upon
opening a workbook in automatic calculation mode?

Thanks.

Teresa


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Disable recalulcation upon open

Sure. In the Workbook_Open event, set a variable to True. In the UDF, test
if the same variable is TRUE, if so, exit the UDF.

--

Julian Milano


"TY" wrote in message
...
Is there anyway in a macro that I can disable recalculation of UDF upon
opening a workbook in automatic calculation mode?

Thanks.

Teresa




  #3   Report Post  
Posted to microsoft.public.excel.programming
TY TY is offline
external usenet poster
 
Posts: 5
Default Disable recalulcation upon open

Hi Julian,
That will not work. In automatic calculation mode, Workbook_Open event
happens after UDF being invoked.

Thanks.

Teresa

"Julian Milano" wrote in message
...
Sure. In the Workbook_Open event, set a variable to True. In the UDF, test
if the same variable is TRUE, if so, exit the UDF.

--

Julian Milano


"TY" wrote in message
...
Is there anyway in a macro that I can disable recalculation of UDF upon
opening a workbook in automatic calculation mode?

Thanks.

Teresa






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Disable recalulcation upon open

Set the calculation to manual. In the Workbook_Open, set it back to Auto!

--

Julian Milano


"TY" wrote in message
.. .
Hi Julian,
That will not work. In automatic calculation mode, Workbook_Open event
happens after UDF being invoked.

Thanks.

Teresa

"Julian Milano" wrote in message
...
Sure. In the Workbook_Open event, set a variable to True. In the UDF,

test
if the same variable is TRUE, if so, exit the UDF.

--

Julian Milano


"TY" wrote in message
...
Is there anyway in a macro that I can disable recalculation of UDF

upon
opening a workbook in automatic calculation mode?

Thanks.

Teresa








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
Disable System Alerts on File Open PeterM Excel Discussion (Misc queries) 1 June 25th 08 08:02 AM
Disable formatting on csv open? Heather1270 Excel Discussion (Misc queries) 1 May 19th 06 12:37 PM
How can I disable macros after the initial open? Troy Excel Discussion (Misc queries) 4 February 13th 06 03:38 PM
Open Worbook and Disable Macros DMc2005 Excel Discussion (Misc queries) 4 October 1st 05 07:23 PM
How to disable 'Update alert' when open a spreadsheet has link to other XLS Jose Rojas Excel Programming 0 July 9th 03 11:14 PM


All times are GMT +1. The time now is 04:48 AM.

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"