Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Turn Calculations On without Calculation when Turned on


Hello All,
I have a workbook that has a worksheet that is about 28000 lines that
one of my sheets does a lookup on. My thing is that top of each column
the labels are sort buttons. So when ever I sort a column you can see a
blue wave becuase my table is so big. I played with turning calculations
off at the beginning of the macro and back on at the end. But when it
turns the calculations back on the calculations automatically start. I
need the calculations on for when who ever is keying into the sheet
it'll populate from my lookup, but for the sort it'll be best if it was
off. But how can I have the best of both worlds.
Hope someone has an answer thanks for the help as always,
Bob


--
robertjtucker
------------------------------------------------------------------------
robertjtucker's Profile: http://www.excelforum.com/member.php...o&userid=21805
View this thread: http://www.excelforum.com/showthread...hreadid=374002

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Turn Calculations On without Calculation when Turned on

robert,

Have you tried any of the following in your code:

Application.ScreenUpdating = False ' turns the screen static during code
Application.EnableEvents = False ' turns off all event macros during
code
Application.Calculation = xlCalculationManual ' turns auto-calculate off

* your code *

* reset the above

--
rand451
"robertjtucker"
wrote in message
news:robertjtucker.1plpvl_1117047665.3198@excelfor um-nospam.com...

Hello All,
I have a workbook that has a worksheet that is about 28000 lines that
one of my sheets does a lookup on. My thing is that top of each column
the labels are sort buttons. So when ever I sort a column you can see a
blue wave becuase my table is so big. I played with turning calculations
off at the beginning of the macro and back on at the end. But when it
turns the calculations back on the calculations automatically start. I
need the calculations on for when who ever is keying into the sheet
it'll populate from my lookup, but for the sort it'll be best if it was
off. But how can I have the best of both worlds.
Hope someone has an answer thanks for the help as always,
Bob


--
robertjtucker
------------------------------------------------------------------------
robertjtucker's Profile:
http://www.excelforum.com/member.php...o&userid=21805
View this thread: http://www.excelforum.com/showthread...hreadid=374002



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Turn Calculations On without Calculation when Turned on


Yes I have tried those see the thing is after the sort is done and the
macro is finished I need the calculations on for the lookups to
populate. I don't want the people using this to have to hit a button to
update. In the beginning of the macro the calculations get turned off,
but at the end I turn them back on. That is when the autocalculations
start and it adds 4-5 seconds but some times it plays tricks with the
sort. I don't want the calculations on at all for the sort, but I need
it on for the lookups.


--
robertjtucker
------------------------------------------------------------------------
robertjtucker's Profile: http://www.excelforum.com/member.php...o&userid=21805
View this thread: http://www.excelforum.com/showthread...hreadid=374002

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
My "F2" function has been turned off, how do I turn it on? Sometimes I need assistance... Excel Worksheet Functions 5 May 12th 07 06:09 PM
How do I turn 'update links' back on when turned off? AnnieP Excel Worksheet Functions 0 August 10th 06 04:47 PM
Sort is turned off. How do I turn it on? Ludwig1251 Excel Worksheet Functions 3 February 7th 06 03:44 AM
excel formula calculation turned off?? jd Excel Discussion (Misc queries) 2 November 18th 05 08:01 PM
Merge & Center function is turned off...how do I turn it back on? zulumaster Excel Worksheet Functions 1 September 13th 05 12:47 AM


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