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 / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Setting Cursor Position

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ray Worrell - 20 Nov 2004 22:45 GMT
Hi!

I'm totally new to programming Word and Outlook with VBA, and I have a
question.

I'm working on a macro that will take a contact and create a FAX document
for it with the information from the contact item.  This is just a contrived
thing I'm working on to get a feel for how everything works.

I got it working, but I was wondering if there would be a way to position
the resulting Word document to a specific cursor position.  For example, I
would like the cursor position to default to the FAX subject of the newly
created Word document.  Is that possible?  If so, could you please include a
code snippet on how to do it?  Remember I'm new!

Thanks for all of your help.

Ray.
Helmut Weber - 21 Nov 2004 01:13 GMT
Hi Ray,
impossible, in one way, and easy in another way.
You can position the cursor anywhere you like,
if you can identify the location somehow. If the subject paragraph
starts with "Subject: " and if this occurs only once in a doc,
then you got a definition of the location.
Search for "Subject: "
Or if the subject paragraph would be the first paragraph starting
with "Subject: ", or the paragraph number x ...
Using selection and search, the cursor will be at the postition
of what you've been searching for, if it was found. The question is,
what to search for...
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/

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.