Getting the name of an object

E

edamron

I want to pass frame objects to a sub and need to determine the name
of the frame. When I try to get the name by:

oFrame.Name

I get an error. How can I get the name of the frame?

Thanks.
 
J

Jay Freedman

I want to pass frame objects to a sub and need to determine the name
of the frame. When I try to get the name by:

oFrame.Name

I get an error. How can I get the name of the frame?

Thanks.

Sorry, Frame objects don't have any .Name property, or anything that could hold
a name. All they have as an identifier is the index into the Frames collection
of the document or range, as in ActiveDocument.Frames(2).
 

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