J
Jack_Feeman
I have successfully written a macro to open Document Properties dialog box so
users can enter repetitive data to populate fields throughout the body and
header/footer.
Sub ShowProperties()
'
'Shows the Properties Dialog Box
On Error Resume Next
WordBasic.FileProperties
On Error GoTo 0
' Macro recorded 10/4/2006 by Jack Feeman
'
End Sub
However, after entering in the (meta)data and clicking the OK button, the
dialog box closes and so does the custom toolbar that contains the button
that opened it. Even though clicking anywhere in the background brings it
back, we want a positive user experience and someone will always forget to
click to bring it back. If I manually open/close the dialog box, the custom
toolbar stays put. If I do the same thing via a custom button the toolbar and
if another window is open in the background it will become the focus when I
close the dialog box.
Anything I could add to the macro that will bring it back automatically upon
closing the dialog box?
The "Record new Macro" toolbar always disables itself if I try to change
tabs on the Document Properties dialog box or in any other way try to do
anything else in the dialog box except for opening it. If I click OK during
the recording of the macro, the "Record New Macro" toolbar will become
enabled again, but I do not want to close it since the user will not get a
chance to enter any data.
What I am trying to do in addition to opening the Document Properties dialog
for data entry; I wanted to select the Custom tab of the dialog box where all
the information to be entered is consolidated. If I click on the tab, it does
not select it and the "record New Macro" toolbar disables itself.
Thanks
Jack
users can enter repetitive data to populate fields throughout the body and
header/footer.
Sub ShowProperties()
'
'Shows the Properties Dialog Box
On Error Resume Next
WordBasic.FileProperties
On Error GoTo 0
' Macro recorded 10/4/2006 by Jack Feeman
'
End Sub
However, after entering in the (meta)data and clicking the OK button, the
dialog box closes and so does the custom toolbar that contains the button
that opened it. Even though clicking anywhere in the background brings it
back, we want a positive user experience and someone will always forget to
click to bring it back. If I manually open/close the dialog box, the custom
toolbar stays put. If I do the same thing via a custom button the toolbar and
if another window is open in the background it will become the focus when I
close the dialog box.
Anything I could add to the macro that will bring it back automatically upon
closing the dialog box?
The "Record new Macro" toolbar always disables itself if I try to change
tabs on the Document Properties dialog box or in any other way try to do
anything else in the dialog box except for opening it. If I click OK during
the recording of the macro, the "Record New Macro" toolbar will become
enabled again, but I do not want to close it since the user will not get a
chance to enter any data.
What I am trying to do in addition to opening the Document Properties dialog
for data entry; I wanted to select the Custom tab of the dialog box where all
the information to be entered is consolidated. If I click on the tab, it does
not select it and the "record New Macro" toolbar disables itself.
Thanks
Jack