+ Reply to Thread
Results 1 to 2 of 2

Printing Macro-How can I make my print macro force excel

  1. #1
    Registered User
    Join Date
    09-22-2006
    Posts
    39

    Printing Macro-How can I make my print macro force excel

    Hi

    I have a very simple macro that prints the sheet I am working on. I also have a more complex macro that saves a copy of my sheet as a pdf.

    The problem is that if I click the macro that saves (prints) to pdf and then click the print macro, it tries to save as a pdf again.

    How can I make my print macro force excel to print to my local default printer and avoid this from happening?

    At the moment, my print macro is:

    Sub PrintCopy()

    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

    End Sub

    Many Thanks

    Chris Mayer

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Try your macro recorder to select each printer,I just tried it and it appears to work fine, it ends up looking like this

    Please Login or Register  to view this content.

+ 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