Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 176
Default Visually Surpressing A Macro

Hi

I run Excel 2000

I was wondering if there is some code that I can use to visually supress a
macro when it runs.

When I presently run a macro that initiates a number of various tasks the
sheet "jump's" about as the macros run. Its not a big deal but would be nice
if I could surpress this screen movement.

Is it possible?

Thanks

John
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default Visually Surpressing A Macro

Application.screenupdating = false
your code that jumps around
Application.screenupdating = true


It may make the code easier to update if you drop all the .selects and
..activates. Just work directly with the range (for example).

worksheets("sheet99").select
range("a99").select
activecell.value = 33

could be replaced with:
worksheets("sheet99").range("a99").value = 33



John Calder wrote:

Hi

I run Excel 2000

I was wondering if there is some code that I can use to visually supress a
macro when it runs.

When I presently run a macro that initiates a number of various tasks the
sheet "jump's" about as the macros run. Its not a big deal but would be nice
if I could surpress this screen movement.

Is it possible?

Thanks

John


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 176
Default Visually Surpressing A Macro

Dave, thanks for your prompt response.

I should have mentioned that I am not a visual basic user. Could you be a
little more specific on what part of the code I should use and where exactly
should I copy it to?

Thanks


"Dave Peterson" wrote:

Application.screenupdating = false
your code that jumps around
Application.screenupdating = true


It may make the code easier to update if you drop all the .selects and
..activates. Just work directly with the range (for example).

worksheets("sheet99").select
range("a99").select
activecell.value = 33

could be replaced with:
worksheets("sheet99").range("a99").value = 33



John Calder wrote:

Hi

I run Excel 2000

I was wondering if there is some code that I can use to visually supress a
macro when it runs.

When I presently run a macro that initiates a number of various tasks the
sheet "jump's" about as the macros run. Its not a big deal but would be nice
if I could surpress this screen movement.

Is it possible?

Thanks

John


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default Visually Surpressing A Macro

Sub YourSubNameHere()
Application.screenupdating = false 'right at the top


your code that jumps around


Application.screenupdating = true 'right at the bottom
End Sub

John Calder wrote:

Dave, thanks for your prompt response.

I should have mentioned that I am not a visual basic user. Could you be a
little more specific on what part of the code I should use and where exactly
should I copy it to?

Thanks

"Dave Peterson" wrote:

Application.screenupdating = false
your code that jumps around
Application.screenupdating = true


It may make the code easier to update if you drop all the .selects and
..activates. Just work directly with the range (for example).

worksheets("sheet99").select
range("a99").select
activecell.value = 33

could be replaced with:
worksheets("sheet99").range("a99").value = 33



John Calder wrote:

Hi

I run Excel 2000

I was wondering if there is some code that I can use to visually supress a
macro when it runs.

When I presently run a macro that initiates a number of various tasks the
sheet "jump's" about as the macros run. Its not a big deal but would be nice
if I could surpress this screen movement.

Is it possible?

Thanks

John


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 176
Default Visually Surpressing A Macro

Dave

Thanks a lot...it works great !!

John




"Dave Peterson" wrote:

Sub YourSubNameHere()
Application.screenupdating = false 'right at the top


your code that jumps around


Application.screenupdating = true 'right at the bottom
End Sub

John Calder wrote:

Dave, thanks for your prompt response.

I should have mentioned that I am not a visual basic user. Could you be a
little more specific on what part of the code I should use and where exactly
should I copy it to?

Thanks

"Dave Peterson" wrote:

Application.screenupdating = false
your code that jumps around
Application.screenupdating = true


It may make the code easier to update if you drop all the .selects and
..activates. Just work directly with the range (for example).

worksheets("sheet99").select
range("a99").select
activecell.value = 33

could be replaced with:
worksheets("sheet99").range("a99").value = 33



John Calder wrote:

Hi

I run Excel 2000

I was wondering if there is some code that I can use to visually supress a
macro when it runs.

When I presently run a macro that initiates a number of various tasks the
sheet "jump's" about as the macros run. Its not a big deal but would be nice
if I could surpress this screen movement.

Is it possible?

Thanks

John

--

Dave Peterson


--

Dave Peterson

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
Using Excel with Visually Impaired and ZoomText Daniel Naas Setting up and Configuration of Excel 0 April 3rd 08 06:17 PM
Visually Impaired Using Excel with ZoomText Daniel Naas[_2_] Excel Discussion (Misc queries) 0 April 3rd 08 06:08 PM
Count only on visually populated cells Neall Excel Worksheet Functions 3 June 22nd 07 11:07 PM
Visually add (graph) vectors Banaticus Charts and Charting in Excel 2 June 30th 06 05:49 AM
Can not visually see the shading on the EXCEL file? lloyd Excel Discussion (Misc queries) 1 April 12th 05 12:59 PM


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