Quote:
Originally Posted by ksigcajun
When you referenced using a second macro to create the PDF and email, plus the delete the command button and add it back, why can't I use the macro I currently have built to do it?
|
That's just a precaution. I haven't tested it but I was concerned that deleting the button from the macro that runs it might kill the macro. If that doesn't occur, then it should be OK.
Quote:
What code would delete a command button and add it back?
|
You could use code like:
Code:
Me.CommandButton111.Select
Selection.Delete
'do your printout here
ActiveDocument.Undo