Results 1 to 2 of 2

Only Print via Macro

Threaded View

  1. #1
    Registered User
    Join Date
    03-31-2006
    Posts
    39

    Only Print via Macro

    Hi,

    Im using the following to disable printing:

    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    If PrtOK Then
     Cancel = False
     Else
     MsgBox "Print using Macro button"
     Cancel = True
    End If
    End Sub
    Can I have a macro, that will allow printing?

    Thanks in advance.
    Last edited by Fotis1991; 05-06-2014 at 10:58 AM. Reason: Pls use code tags around your codes.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Print Macro errors on final print command. Run-time error '1004':
    By Steverizer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 06:41 PM
  2. Replies: 2
    Last Post: 12-28-2005, 01:10 PM
  3. Replies: 1
    Last Post: 10-27-2005, 06:00 PM
  4. Create a print macro that would automatically select print area?
    By wastedwings in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  5. [SOLVED] Create a print macro that would automatically select print area?
    By wastedwings in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

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