M
Michael Islip
Hi
First, excuse me if this a really obvious problem, I'm not
too hot at VBA...
I'm using Word 2002 on Windows 2000 and I'm trying to run
a macro when you click on a form element in a template.
The macro is fairly simple, it just displays the 'Insert
Picture' prompt to the user:
--
Sub ImageInsert()
Dialogs(wdDialogInsertPicture).Show
End Sub
--
It runs fine when you run it from within the document, but
I have it set to 'Run on Entry' for a text form field.
When you create a new document from this template and
click on the field I get the following error:
Run-time error '4605'
This command is not available
Any ideas what the problem might be? Thanks in advance.
Michael
First, excuse me if this a really obvious problem, I'm not
too hot at VBA...
I'm using Word 2002 on Windows 2000 and I'm trying to run
a macro when you click on a form element in a template.
The macro is fairly simple, it just displays the 'Insert
Picture' prompt to the user:
--
Sub ImageInsert()
Dialogs(wdDialogInsertPicture).Show
End Sub
--
It runs fine when you run it from within the document, but
I have it set to 'Run on Entry' for a text form field.
When you create a new document from this template and
click on the field I get the following error:
Run-time error '4605'
This command is not available
Any ideas what the problem might be? Thanks in advance.
Michael