+ Reply to Thread
Results 1 to 3 of 3

Macros for Printing multiple workbooks

Hybrid View

leavitttown Macros for Printing multiple... 07-25-2006, 01:40 PM
Guest RE: Macros for Printing... 07-25-2006, 02:10 PM
leavitttown Thanks for the reply. This... 07-25-2006, 04:26 PM
  1. #1
    Registered User
    Join Date
    07-25-2006
    Location
    Syracuse, Utah
    Posts
    2

    Macros for Printing multiple workbooks

    Is there a way to write a macro that will print out multiple workbooks contained in a common folder without having to open up each workbook individually?

    Thanks in advance.

  2. #2
    Tom Ogilvy
    Guest

    RE: Macros for Printing multiple workbooks

    Have a macro open them for you:

    Sub Printbooks()
    Dim sName as String, bk as Workbook
    sname = dir("C:\Myfolder\*.xls")
    do while sName <> ""
    set bk = workbooks.Open("C:\Myfolder\" & sName)
    bk.Printout
    bk.close Savechanges:=True
    sName = dir
    Loop
    End sub

    --
    Regards,
    Tom Ogilvy

    "leavitttown" wrote:

    >
    > Is there a way to write a macro that will print out multiple workbooks
    > contained in a common folder without having to open up each workbook
    > individually?
    >
    > Thanks in advance.
    >
    >
    > --
    > leavitttown
    > ------------------------------------------------------------------------
    > leavitttown's Profile: http://www.excelforum.com/member.php...o&userid=36765
    > View this thread: http://www.excelforum.com/showthread...hreadid=564823
    >
    >


  3. #3
    Registered User
    Join Date
    07-25-2006
    Location
    Syracuse, Utah
    Posts
    2
    Thanks for the reply. This should work.

+ 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