Newbie: "Find" and "Range"?

E

Ed

I haven't tried VBA in Publisher yet, though I've done a bit in Word and
Excel. I thought I'd read a bit on the Object Model first. I'm used to
using Find to get text, and then manipulating the Range returned by Find.
Publisher doesn't seem to have these. Is there an equivalent method to find
text in a publication, collapse the range, and insert new text?

Thank you.
Ed
 
E

Ed Bennett

Ed said:
I haven't tried VBA in Publisher yet, though I've done a bit in Word
and Excel. I thought I'd read a bit on the Object Model first. I'm
used to using Find to get text, and then manipulating the Range
returned by Find. Publisher doesn't seem to have these. Is there an
equivalent method to find text in a publication, collapse the range,
and insert new text?

You can use the FindReplace object in Publisher 2003 to perform text
searches on a Document or a particular TextRange.

Publisher 2002, unfortunately, does not offer this object.

I have not used the object model in Excel, so I'm not sure what you mean by
"collapse the range".
 
E

Ed

My apologies - I neglected to mention I have Publisher 2000.

In Word VBA, you can set a range (for example) from |<< here to here >>|.
If you collapse the range to the start, then anything you do (such as insert
text) will go in front of |<< here. If you collapse to the end, it will go
after here >>|.

Thank you for your reply.
Ed
 
E

Ed Bennett

Ed said:
My apologies - I neglected to mention I have Publisher 2000.

There is no VBA or Object Model in Publisher 2000, unless I have been very
gravely misled.
 

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