+ Reply to Thread
Results 1 to 2 of 2

printing excel worksheet from macro in another workbook

  1. #1
    Registered User
    Join Date
    01-17-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    11

    printing excel worksheet from macro in another workbook

    how can i print all or part of a worksheet from a macro in another workbook? the worksheet will definitely be open + i might need to print the entire worksheet or 1 or 2 of the 3 pages maximum.

    i was thinking it might be something like:

    Please Login or Register  to view this content.
    but thats as far as i got.

    second question, how do i save the workbook with a new name, again from a macro in another workbook?
    Last edited by VBA Noob; 01-17-2009 at 07:50 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You can't use activesheet unless the workbook is active

    try the below. Change sheet 1 to sheet to print


    Please Login or Register  to view this content.
    to print all sheets try

    Please Login or Register  to view this content.
    to save it something like

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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