+ Reply to Thread
Results 1 to 6 of 6

Do not show a macro's steps

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Do not show a macro's steps

    I am sure this must be on here somewhere but my search skills are not up to tracking it down.

    I have written a macro, big cheers as it's my first, and it even works as I wanted it to.

    Trouble is when you run it, it shows you all the steps it is making. Is there any way to stop this and purely for the end result to appear? It may well also have something to do with my PC needing more RAM to make it faster. Ever since upgrading (?) to 2007, my PC feels like it is stuck in quicksand.
    Last edited by Andrew-Mark; 07-15-2009 at 10:49 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Do not show a macro's steps

    Place At the Start of you code.
    Application.ScreenUpdating = False
    Place At points of your code that you may want to show.
    Application.ScreenUpdating = True

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,979

    Re: Do not show a macro's steps

    Use:
    Please Login or Register  to view this content.
    I would also guess that your code probably selects everything it manipulates - that is almost never necessary. For example, rather than:
    Please Login or Register  to view this content.
    you can just use:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    07-15-2009
    Location
    paris, france
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Do not show a macro's steps

    You have just to insert the following code in front of your syntaxes.
    Application.ScreenUpdating = False

    Quote Originally Posted by Andrew-Mark View Post
    I am sure this must be on here somewhere but my search skills are not up to tracking it down.

    I have written a macro, big cheers as it's my first, and it even works as I wanted it to.

    Trouble is when you run it, it shows you all the steps it is making. Is there any way to stop this and purely for the end result to appear? It may well also have something to do with my PC needing more RAM to make it faster. Ever since upgrading (?) to 2007, my PC feels like it is stuck in quicksand.

  5. #5
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Do not show a macro's steps

    Can put in :

    Application.ScreenUpdating = False

    Then just make it true again at the end.
    Also may want to disable automatic calculations for the duration of the macro if you have calculations which are updating as you go and slowing it down
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  6. #6
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Do not show a macro's steps

    Many thanks folks. Knew you would know. :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1