Command Failed setting Name property on Formfield object

E

Eric Weller

Whenever I try to set the .Name property of a FormField
object when the .name property is currently blank, I get
a runtime error thus:

Runtime Error: '-2147467259 (80004005)':

Method 'Name' of object 'FormField' failed

If you think it's odd that the message describes "name"
as a method rather than a property, join the club.

I've used different structures of code to attempt this,
but at it's most basic the code is:

selection.formfields(1).name = "MyName"

If there's already a name associated with FormFields(1),
the command succeeds. If name is blank, it fails with
the above error.

Thoughts?
 
C

Cindy M -WordMVP-

Hi Eric,

You should find an article on this on the mvps.org/word
website by "Ibby".
Whenever I try to set the .Name property of a FormField
object when the .name property is currently blank, I get
a runtime error thus:

Runtime Error: '-2147467259 (80004005)':

Method 'Name' of object 'FormField' failed

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top