Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Disabling effects of cells (temporarily)

I have an odd situation (odd to me anyway) - getting some information from a
database via a macro. The spreadsheet is quite large (many worksheets) -
and when the information is taken from the database and put into the
spreadsheet it is very slow. I tried this same code in a blank spreadsheet
and the performance was very good. So my thought is - the effect of putting
the data into this worksheet (and then Excel updating all of the
worksheets - is the performance problem) - so I was curious if there is a
way to put the data into this worksheet - and disable the effect in Excel of
updating all of the references to this worksheet (cells) - until the
database transaction is complete.

Am I crazy?

BBB


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Disabling effects of cells (temporarily)

You could set Calculation to Manual before you refresh and then set it back
on Automatic when done. The basic code would be:

Application.Calculation = xlCalcuationManua
Workbooks("Book1").Worksheets("SheetName").QueryTa bles("QuerytableName").Refresh ' Or whatevery your code is to update your data
.... ' similarly for other querytables
Application.Calculation = xlCalculationAutomatic
--
- K Dales


"booner" wrote:

I have an odd situation (odd to me anyway) - getting some information from a
database via a macro. The spreadsheet is quite large (many worksheets) -
and when the information is taken from the database and put into the
spreadsheet it is very slow. I tried this same code in a blank spreadsheet
and the performance was very good. So my thought is - the effect of putting
the data into this worksheet (and then Excel updating all of the
worksheets - is the performance problem) - so I was curious if there is a
way to put the data into this worksheet - and disable the effect in Excel of
updating all of the references to this worksheet (cells) - until the
database transaction is complete.

Am I crazy?

BBB



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
how do i add shadow effects to cells in excel? alistair Excel Discussion (Misc queries) 2 April 7th 23 12:24 PM
Data in cells disappear temporarily Bagia Excel Discussion (Misc queries) 5 June 2nd 09 03:05 PM
Temporarily highlighting related cells [email protected] Excel Discussion (Misc queries) 2 March 19th 07 02:35 PM
COUNTIF temporarily missed some cells dstx Excel Worksheet Functions 0 July 18th 05 08:42 PM
Temporarily Disabling an Event Macro stratuser Excel Programming 2 December 2nd 03 08:07 PM


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