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 / December 2004

Tip: Looking for answers? Try searching our database.

Forms...............

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 21 Dec 2004 16:40 GMT
Can anyone help?

I have a form which i use to enter information into the
header of a document, when the ok button is clicked i
have to following code:

Private Sub OK_Click()
With ActiveDocument
   .Bookmarks("est").Range _
   .InsertBefore TextBox1
   
End With

UserForm1.Hide

End Sub

the only trouble is if i need to modify a field, i.e i
reopen the form and re enter the data it will only add to
what is already there, for example if i enter 'xxx' in
the first instance and need to change it to 'yyy' it will
be displayed in my header as xxxyyy i need some sort of
code to erase what is already there and re enter the text
when the form is reused.

please forgive me if the answer to this question is a
bit, well, obvious but i am very new to this whole thing!

your help would be massively appreciated!

Regards

Alex
Jay Freedman - 21 Dec 2004 16:46 GMT
Hi Alex,

See http://word.mvps.org/FAQs/MacrosVBA/InsertingTextAtBookmark.htm.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

> Can anyone help?
>
[quoted text clipped - 29 lines]
>
> Alex
alex - 21 Dec 2004 16:56 GMT
cracking..... thanks for your help
>-----Original Message-----
>Can anyone help?
[quoted text clipped - 32 lines]
>
>.

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.