Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI all ,
OK ... help here please ... you know when you write a visual basic programme in Excel , and you want to take some information from "Sheet1" and do some calculations with it and put it into "Sheet2" for example .. but you want to do this calculation thousnads of times ... well what you see when you run it is Excel flicking from Sheet1 to Sheet2 all the time ... is there any way of turning that off ... like turning off that ... if you know what I mean ... because it must slow the programme down having to display each sheet every time .. I am looking for a command like "AutoUpdate Off " does that exist ?? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use:
Application.screenupdating=false Francisco Mariscal fcomariscal at hotmail dot com -----Original Message----- HI all , OK ... help here please ... you know when you write a visual basic programme in Excel , and you want to take some information from "Sheet1" and do some calculations with it and put it into "Sheet2" for example .. but you want to do this calculation thousnads of times ... well what you see when you run it is Excel flicking from Sheet1 to Sheet2 all the time ... is there any way of turning that off ... like turning off that ... if you know what I mean ... because it must slow the programme down having to display each sheet every time .. I am looking for a command like "AutoUpdate Off " does that exist ?? Thanks . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
yep you can turn off the updating
put the following at the beginning of your code Application.ScreenUpdating = False there is no need to set it to true as this is done automatically when macro finishes. you may also want to use the following if your spreadsheets contain lots of formulas application.Calculation = xlCalculationManual this stops excel recalculating formulas each time it changes something - however you do need to set this back to automatic at the end of the macro application.Calculation = xlCalculationAutomatic |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is Visual Basic the same as Visual Studio 2008? | Excel Worksheet Functions | |||
In visual basic | Excel Worksheet Functions | |||
visual basic | Excel Discussion (Misc queries) | |||
Visual Basic | Excel Discussion (Misc queries) | |||
changing the visual basic in office 2003 to visual studio net | Excel Discussion (Misc queries) |