+ Reply to Thread
Results 1 to 2 of 2

Excel Sheet Setup via VB6

  1. #1
    Registered User
    Join Date
    07-21-2008
    Location
    Sydney
    Posts
    6

    Excel Sheet Setup via VB6

    I am exporting to Excel and am running the following code to setup the page layout

    This takes 9 seconds on a P4 3.0 with 2GB Ram Excel 2003

    Should it take so long ?
    Can it be optimised ?


    Code:

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 02-26-2009 at 05:58 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Excel Sheet Setup via VB6

    XL can be very slow when dealing with page setup etc... given round trips to printer driver... have a read through the below and see if that gives you some pointers:

    http://www.mcgimpsey.com/excel/udfs/pagesetup.html

    EDIT:

    Also from Googling I note Colo (MS Excel MVP) suggests an alternate approach using SendKeys, see: http://puremis.net/excel/code/039.shtml
    Last edited by DonkeyOte; 02-26-2009 at 06:09 PM.

+ 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