A question regarding Macros

  • Thread starter Thread starter DangerMouse114
  • Start date Start date
D

DangerMouse114

I was curious to know if there was an option to not show the work
macro button I recorded is doing. When you click the button the shee
jumps around a lot and then stops. I would like it not even bothe
jumping around and just stay showing one part of the excel sheet whil
it does its work.

If its possible please let me know!

Thanks

ERi
 
Hi
add the following lines
sub your_macro
application.screenupdating=false
'your existing code
application.screenupdating = True
end sub

Note: Though the macro recorder creates a lot of 'Select' statements
they're in most cases not required but slow down your macro. e.g. a
statement like the following:

with activesheet
Range("B1").select
Selection.value="value"
end with

could be shortened to:
Activecell.Range("B1").value="value"
 
Typo alert...

I'm pretty sure that Frank meant:

Activesheet.Range("B1").value="value"
instead of:
Activecell.Range("B1").value="value"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top