Reply
 
Thread Tools Display Modes
  #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





  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Method or Data Member not found HELP

In two places you must insert a space between the word Range and the
following underscore. See
http://www.word.mvps.org/FAQs/Macros...tEndOfLine.htm for an explanation.

If the dropdown needs only four entries, and they won't change frequently,
then just include them in the code (in the Initialize_UserForm procedure).
Also, if the template or document containing the UserForm will be sent to
other users, avoid external data files.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Kenny wrote:
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



Reply
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 11:17 PM.

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"