T
TomP
I've been having problems hiding and showing the command button in MS Word.
When the button is pressed it will bring up a form. The form has another
command "OK & CANCEL" and also "Input Field".
I was able to reduce the size of the Command Button to .0001 for printing,
but not able to bring it back to the original size after the document is
printed. (See Below)
Question: How can have the CommandButton1 show again without closing the
document and opening it again?
With ActiveDocument.CommandButton1
.Height = 0.0001
.Width = 0.0001
End With
MsgBox "Your document is now being printed..."
ActiveDocument.PrintOut
With ActiveDocument.CommandButton1
.Height = 25
.Width = 160
End With
Exit Sub
End Sub
Thank you for your help!
Tom
When the button is pressed it will bring up a form. The form has another
command "OK & CANCEL" and also "Input Field".
I was able to reduce the size of the Command Button to .0001 for printing,
but not able to bring it back to the original size after the document is
printed. (See Below)
Question: How can have the CommandButton1 show again without closing the
document and opening it again?
With ActiveDocument.CommandButton1
.Height = 0.0001
.Width = 0.0001
End With
MsgBox "Your document is now being printed..."
ActiveDocument.PrintOut
With ActiveDocument.CommandButton1
.Height = 25
.Width = 160
End With
Exit Sub
End Sub
Thank you for your help!
Tom