+ Reply to Thread
Results 1 to 4 of 4

Macro to print the current worksheet WITHOUT having Print Preview

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    Swansea UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Macro to print the current worksheet WITHOUT having Print Preview

    Can anyone advise if it is possible and what the macro would be if I simply wanted to print out the current worksheet without having any preview window displayed which requires the 'Print' / 'Cancel Print' options presented to you.

    I am running Excel 2007 in Windows XP and use a Canon Pixma iP4950 printer

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro to print the current worksheet WITHOUT having Print Preview

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-06-2012
    Location
    Swansea UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Macro to print the current worksheet WITHOUT having Print Preview

    Sorry , that doesn't work ! If your 'Print Preview' box is ticked in the Printer Properties section , you get a Print Preview. Simple as that. Trick is for the macro to over-ride the ticked box somehow ! Don't know how.
    Thanks anyway.

  4. #4
    Registered User
    Join Date
    01-06-2012
    Location
    Swansea UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Macro to print the current worksheet WITHOUT having Print Preview

    After days of trial and error , I believe that I have eventually come to fully understand the background to the situation. Contributors have helped but none had FULLY explained the scenario.
    The conclusion that I have come to is as follows :

    BOTH the Printer AND EXCEL have a PrintView facility.
    In order for EXCEL to Print WITHOUT a Preview , the PRINTER Preview setting must be switched OFF.
    So ,
    with PRINTER PREVIEW = OFF , macro ActiveSheet.PrintOut Preview:=False PRINTS WITH NO PREVIEW

    with PRINTER PREVIEW = OFF , macro ActiveSheet.PrintOut Preview:=True PRINTS WITH EXCEL PREVIEW ON

    with PRINTER PREVIEW = OFF , macro ActiveSheet.PrintOut PRINTS WITH NO PREVIEW

    with PRINTER PREVIEW = ON , macro ActiveSheet.PrintOut PRINTS WITH NO EXCEL PREVIEW BUT WITH PRINTER PREVIEW

    The problem with all this is that one would normally run a printer with the Preview ON - well I do anyway - and if you are running an Excel Worksheet which has a macro to operate with or without preview , you must remember to set the PRINTER to PREVIEW OFF before you use the worksheet.
    As far as I can tell , Excel cannot switch off the PRINTER PREVIEW SETTING (which would be the ideal scenario) ..... unless someone can tell me otherwise !

+ 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