Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default What macro command to turn off page refresh

I am using SheetActivate to run a macro to position the cursor in a specified
cell with the selected cell being in the top row, regardless of where the
cell may have been when the worksheet was last active. I'm doing it by
selecting a cell in the macro that is in a row further down in the worksheet
and in a column further to the right than will display when the cell I want
is selected. I then select the desired cell and the cursor is positioned as
I want it. Everything works just fine. But, are there Excel commands that
will turn off the page refresh and subsequently turn it back on to prevent
the screen flicker when the cursor is repositioned? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default What macro command to turn off page refresh

application.screenupdating = false
'Your code here
Application.screenupdating = true
--
HTH...

Jim Thomlinson


"CurtB" wrote:

I am using SheetActivate to run a macro to position the cursor in a specified
cell with the selected cell being in the top row, regardless of where the
cell may have been when the worksheet was last active. I'm doing it by
selecting a cell in the macro that is in a row further down in the worksheet
and in a column further to the right than will display when the cell I want
is selected. I then select the desired cell and the cursor is positioned as
I want it. Everything works just fine. But, are there Excel commands that
will turn off the page refresh and subsequently turn it back on to prevent
the screen flicker when the cursor is repositioned? Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default What macro command to turn off page refresh

You can sandwich your code like this,

Application.ScreenUpdating = False
'Your code here
Application.ScreenUpdating = True

Regards,
Alan.
"CurtB" wrote in message
...
I am using SheetActivate to run a macro to position the cursor in a
specified
cell with the selected cell being in the top row, regardless of where the
cell may have been when the worksheet was last active. I'm doing it by
selecting a cell in the macro that is in a row further down in the
worksheet
and in a column further to the right than will display when the cell I
want
is selected. I then select the desired cell and the cursor is positioned
as
I want it. Everything works just fine. But, are there Excel commands
that
will turn off the page refresh and subsequently turn it back on to prevent
the screen flicker when the cursor is repositioned? Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default What macro command to turn off page refresh

Thanks, Jim and Alan.

"Alan" wrote:

You can sandwich your code like this,

Application.ScreenUpdating = False
'Your code here
Application.ScreenUpdating = True

Regards,
Alan.
"CurtB" wrote in message
...
I am using SheetActivate to run a macro to position the cursor in a
specified
cell with the selected cell being in the top row, regardless of where the
cell may have been when the worksheet was last active. I'm doing it by
selecting a cell in the macro that is in a row further down in the
worksheet
and in a column further to the right than will display when the cell I
want
is selected. I then select the desired cell and the cursor is positioned
as
I want it. Everything works just fine. But, are there Excel commands
that
will turn off the page refresh and subsequently turn it back on to prevent
the screen flicker when the cursor is repositioned? Thanks.




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 email amacro? leo Excel Worksheet Functions 24 August 9th 06 02:47 PM
Cells turn 'hot' and execute distant macro button Kevryl Excel Discussion (Misc queries) 1 March 31st 06 02:08 PM
Page Numbers Aurora Excel Discussion (Misc queries) 0 November 17th 05 08:04 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Using macro for page break Sara Excel Discussion (Misc queries) 2 January 13th 05 09:29 PM


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