+ Reply to Thread
Results 1 to 6 of 6

Print Full Folder of Workbooks

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134

    Print Full Folder of Workbooks

    Hi All,

    Does anyone have a macro built already that will allow a user to select a folder and print all workbooks in this folder?

    To add a variable, some of these workbooks will have more than 1 sheet.

    Thanks!
    Dvent

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Print Full Folder of Workbooks

    Hi,

    Take a look at this:

    http://exceltip.com/st/Print_all_wor...Excel/455.html
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134

    Re: Print Full Folder of Workbooks

    hi sweep

    when i paste this into a module I dont appear to be able to run it. can you spot any character errors that would stop this?

    dvent

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Print Full Folder of Workbooks

    What do you mean by "I dont appear to be able to run it."?

    You may need to replace this line

    Please Login or Register  to view this content.
    with this

    Please Login or Register  to view this content.
    As you're using XL2007.
    Last edited by sweep; 02-17-2009 at 06:38 AM.

  5. #5
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134

    Re: Print Full Folder of Workbooks

    The workbooks I will be printing will be .xls

    The problem is I have pasted this into VB. Press the Green play button, and it asks me which macro to run. The PrintAllWorkbooksInFolder macro is not listed here.

  6. #6
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Print Full Folder of Workbooks

    OK,

    If you take a look at the first couple of lines of the code there are examples of the usage.

    Once you've pasted the code, you'll have to call it from another procedure, eg

    Please Login or Register  to view this content.
    Then run CallPrintRoutine from excel.

+ 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