Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default A question regarding Macros

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

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default A question regarding Macros

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"


--
Regards
Frank Kabel
Frankfurt, Germany


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

while
it does its work.

If its possible please let me know!

Thanks

ERic


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default A question regarding Macros

Typo alert...

I'm pretty sure that Frank meant:

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


Frank Kabel wrote:

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"

--
Regards
Frank Kabel
Frankfurt, Germany

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

while
it does its work.

If its possible please let me know!

Thanks

ERic


---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default A question regarding Macros

Thanks Dave

--
Regards
Frank Kabel
Frankfurt, Germany


Dave Peterson wrote:
Typo alert...

I'm pretty sure that Frank meant:

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


Frank Kabel wrote:

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"

--
Regards
Frank Kabel
Frankfurt, Germany

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

If its possible please let me know!

Thanks

ERic


---
Message posted from http://www.ExcelForum.com/


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
macros vba question [email protected] Excel Worksheet Functions 1 December 4th 09 05:56 AM
Question on Macros Juan Carlos Excel Discussion (Misc queries) 2 September 10th 09 03:56 PM
Question about macros. [email protected] Excel Discussion (Misc queries) 3 May 11th 06 09:01 PM
Question about merging macros Greegan Excel Worksheet Functions 2 August 7th 05 11:46 PM
question macros wnl2007 Excel Worksheet Functions 1 June 10th 05 10:56 PM


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