+ Reply to Thread
Results 1 to 3 of 3

Why does this macro take 5 seconds to execute?

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Question Why does this macro take 5 seconds to execute?

    Hey guys,

    I've got some code to set the print area, set it to portrait, fit it to page and reduce the margins (see below). It takes about 5 seconds to run this code and I'm on a new desktop PC with loads of RAM. I've tried it on a couple laptops and it took 10-20 seconds.

    Thoughts?

    Code:

    Please Login or Register  to view this content.
    Thanks!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Why does this macro take 5 seconds to execute?

    Try turning of printer communication before setting the page up.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Why does this macro take 5 seconds to execute?

    Awesome mate. Got it down to about 1.5 seconds. Cheers! :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