Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Link Excel to Word Mail Merge - found problem for mix data type | Mailmerge | |||
How to write a letter to irregular club member | New Users | |||
converting from trial member to full membership | Microsoft Word Help | |||
MVB error- compile error method or data member not found | Microsoft Word Help | |||
Error 5941 - The requested member of the collection does not exsis | Microsoft Word Help |