G
Gail
I have a command button that dletes extra rows in a Word table. When the user
prints the table, I do not want the command button to show. I have tried code
from "how to hide a "Print" button when user clicks on it" in MVP - the
problem is - I do not want to print the document immediatly. I just want the
button hidden when the user choses to print the document. I also tried to
interecpt the Print command and then hide - but it prints 2 copies - one
hidden and one with the button showing. Here is the code I am using to
intercept:
Dialogs(wdDialogFilePrint).Show
With ActiveDocument
..Shapes(1).Visible = msoFalse
..PrintOut Background:=False
..Shapes(1).Visible = msoTrue
prints the table, I do not want the command button to show. I have tried code
from "how to hide a "Print" button when user clicks on it" in MVP - the
problem is - I do not want to print the document immediatly. I just want the
button hidden when the user choses to print the document. I also tried to
interecpt the Print command and then hide - but it prints 2 copies - one
hidden and one with the button showing. Here is the code I am using to
intercept:
Dialogs(wdDialogFilePrint).Show
With ActiveDocument
..Shapes(1).Visible = msoFalse
..PrintOut Background:=False
..Shapes(1).Visible = msoTrue