G
GUNNAR BAARDSEN
Hi.
I have a CommandButton (cmdClose) on a template.
When the document is loaded (based on the template), the new document is
displaying the CommandButton.
When I click the cmdClose-button, a subroutine is called which saves the
document.
After the document is saved, I want to remove/delete the cmdClose-button
from my saved document.
I can't access it in code (i.e. Application.ActiveDocument....). I can't
find any code that allows me to do something like this:
Application.ActiveDocument.cmdClose.Delete
or
Application.ActiveDocument.cmdClose.Visible=False
Please help with this one, as I'm totally stuck here.
Thanks,
Gunnar
NORWAY
I have a CommandButton (cmdClose) on a template.
When the document is loaded (based on the template), the new document is
displaying the CommandButton.
When I click the cmdClose-button, a subroutine is called which saves the
document.
After the document is saved, I want to remove/delete the cmdClose-button
from my saved document.
I can't access it in code (i.e. Application.ActiveDocument....). I can't
find any code that allows me to do something like this:
Application.ActiveDocument.cmdClose.Delete
or
Application.ActiveDocument.cmdClose.Visible=False
Please help with this one, as I'm totally stuck here.
Thanks,
Gunnar
NORWAY