disable print option for web page

Discussion in 'Word VBA Beginners' started by baha, Dec 7, 2010.

  1. baha

    baha Guest

    I have a word file which saved as web page. I placed following codes
    to disable printing for this file. If I open the file with MS Word,
    the codes work perfectly well. However I do not want the user print
    the file even as single web file format. Is that possible?Thank you in
    advance
    Baha
    My code as below:

    Sub FilePrint()
    MsgBox "Printing not allowed."
    End Sub
    Sub FilePrintDefault()
    FilePrint
    End Sub
     
    baha, Dec 7, 2010
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Peter

    Disable/Enable Macros message on launch

    Peter, Aug 31, 2003, in forum: Word VBA Beginners
    Replies:
    5
    Views:
    177
    Peter
    Sep 2, 2003
  2. Andrew Duncan

    Disable Macro

    Andrew Duncan, Nov 3, 2003, in forum: Word VBA Beginners
    Replies:
    3
    Views:
    152
    Howard Kaikow
    Nov 3, 2003
  3. Peter

    How to disable one of the page from Multipage ?

    Peter, Jul 30, 2004, in forum: Word VBA Beginners
    Replies:
    0
    Views:
    121
    Peter
    Jul 30, 2004
  4. Steve

    Copy web page to word document

    Steve, Feb 26, 2005, in forum: Word VBA Beginners
    Replies:
    3
    Views:
    253
  5. elle0612

    Printing invoice in Word 2003 from link on web page

    elle0612, May 26, 2007, in forum: Word VBA Beginners
    Replies:
    1
    Views:
    95
    Doug Robbins - Word MVP
    May 26, 2007
  6. Aitziber
    Replies:
    2
    Views:
    91
    Aitziber
    Jan 3, 2008
  7. robot

    Using VBA to open a new web page

    robot, Feb 15, 2008, in forum: Word VBA Beginners
    Replies:
    4
    Views:
    149
    robot
    Mar 7, 2008
  8. Robert Crandal

    Disable "Save As" menu option?

    Robert Crandal, Feb 12, 2010, in forum: Word VBA Beginners
    Replies:
    7
    Views:
    5,285
    Graham Mayor
    Feb 15, 2010
Loading...