Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Publisher / Programming / September 2005

Tip: Looking for answers? Try searching our database.

Newbie: "Find" and "Range"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 08 Sep 2005 00:18 GMT
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
Ed Bennett - 08 Sep 2005 10:43 GMT
Ed <ed_millis@NO_SPAM.yahoo.com> was very recently heard to utter:
> 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".

Signature

Ed Bennett - MVP Microsoft Publisher

Ed - 08 Sep 2005 15:13 GMT
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

> Ed <ed_millis@NO_SPAM.yahoo.com> was very recently heard to utter:
> > I haven't tried VBA in Publisher yet, though I've done a bit in Word
[quoted text clipped - 11 lines]
> I have not used the object model in Excel, so I'm not sure what you mean by
> "collapse the range".
Ed Bennett - 08 Sep 2005 23:05 GMT
Ed <ed_millis@NO_SPAM.yahoo.com> was very recently heard to utter:
> 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.

Signature

Ed Bennett - MVP Microsoft Publisher


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.