Re: UserForm error



Glad I could help.

For reading, start at
http://www.word.mvps.org/FAQs/MacrosVBA/VBABasicsIn15Mins.htm and then
read anything else at http://word.mvps.org/FAQs/MacrosVBA/index.htm
and http://word.mvps.org/FAQs/Userforms/index.htm that looks
interesting.

Then go look at the articles and books listed at
http://word.mvps.org/Tutorials/index.htm and
http://word.mvps.org/Tutorials/FreeToAccess.htm.

Of course, if you still have questions, ask them here!

--
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.

On Tue, 23 May 2006 08:32:01 -0700, Diana Morrison
<DianaMorrison@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

You're right - worked instantly! Thanks so much.

Any recommended reading on this subject? I'd like to be able to better
understand and work with vba for Word.

Thanks!
Diana

"Jay Freedman" wrote:

The probable reason, if you retyped the code instead of using cut&paste, is
that you didn't put in the space before the underscore at the ends of the
lines in

.Bookmarks("Text1").Range _
.InsertBefore TextBox1
.Bookmarks("Text2").Range _
.InsertBefore TextBox2

Because of the font of the web page, those spaces are hard to see, but VBA
requires them.

For an explanation of the underscores, see
http://word.mvps.org/FAQs/MacrosVBA/_AtEndOfLine.htm.

--
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.

Diana Morrison wrote:
I am having trouble with an error message: Compile error: method or
data not found (followed "How to create a Userform" by Doug Robbins).
So, I created a test document following the exact instructions in the
same article and I still get the same message. Can you help?



.



Relevant Pages

  • Re: template
    ... other articles in that series. ... Jay Freedman ... please post all follow-ups to the ... newsgroup so all may benefit. ...
    (microsoft.public.word.docmanagement)
  • Re: Higher number of recently used files (more than nine)
    ... may be working on three or more articles at once and for each one there may ... Jay Freedman ... please post all follow-ups to the ... newsgroup so all may benefit. ...
    (microsoft.public.word.docmanagement)
  • Re: Word 2007-how do i keep table from spliting across a page break?
    ... See these two articles: ... Jay Freedman ... please post all follow-ups to the newsgroup so all may benefit. ...
    (microsoft.public.word.tables)
  • Re: ISA 2006 Problem with Outlook Anywhere
    ... You can't have NTLM auth at any proxy and the upstream server; ... Jim Harrison (ISA SE) ... I think you are reading so many threads these days that you don't ... I've been reading some of your articles on isaserver.org and it's always ...
    (microsoft.public.isaserver)
  • Re: Good lord, when do I get to actually program?
    ... My advice to you would be to stop reading and start messing about. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... > basics, but I'm having trouble seeing myself bridging the gap from basics ...
    (microsoft.public.dotnet.languages.csharp)