Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Kenny Kenny is offline
external usenet poster
 
Posts: 23
Default Method or Data Member not found HELP

Private Sub CommandButton1_Click()

With ActiveDocument
.Bookmarks("Text1").Range_
.InsertBefore TextBox1
.Bookmarks("Text2").Range_
.InsertBefore TextBox2
End With

UserForm1.Hide

End Sub

Why am i getting this error? Method or Data Memeber not found
Also I need to create a drop down that will have 4 choices, upon these four
choices i need to populate an address in the letter? Should I code the addys
in code or external data source??? Please Help and thanks!

"Graham Mayor" wrote:

You need a userform to select the information and insert it in the
document - see Word MVP FAQ - Userforms
http://word.mvps.org/FAQs/Userforms.htm and
http://gregmaxey.mvps.org/Repeating_Data.htm . You may also find
http://www.gmayor.com/Macrobutton.htm a useful alternative.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Kenny wrote:
I am trying to create a form letter. I have two issues. This needs to
work in 2003 and 2007. Dont want to use mail merge.

1. I want to be able to enter some information at the top of the
document and it to fill in diffrent spots in the letter such as name
etc

2. I want to create a drop down box that based upon four choices It
will populate a text box or something with four diffrent addresses?

Please Help





 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link Excel to Word Mail Merge - found problem for mix data type Param Mailmerge 1 March 31st 06 12:29 PM
How to write a letter to irregular club member David Archibong New Users 1 November 1st 05 11:38 AM
converting from trial member to full membership scootersmom Microsoft Word Help 4 October 23rd 05 06:09 AM
MVB error- compile error method or data member not found jvb70 Microsoft Word Help 0 July 29th 05 05:39 PM
Error 5941 - The requested member of the collection does not exsis Melisa Microsoft Word Help 3 July 13th 05 03:56 PM


All times are GMT +1. The time now is 09:40 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"