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

Ask a Question

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.