Hi -
I'm running Word 2000 at work and I'm trying to learn to create a Userform.
I've been using the article by Doug Robbins on how to create a Userform and
when I code in his example (letter for letter) I get the following error:
Compile error: Method or data member not found

It seems to be in regards to " .Range_ " in the the line:
.Bookmarks("Text1").Range_

Can someone please help me? I'm sure it's a very simple error and one which
is probably a simpler over looked area from me.

Thanks for you future help....

Darren.

Re: Problem creating Userform by Helmut

Helmut
Fri Feb 22 06:07:35 PST 2008

Hi Darren,

that's why I'm using Courier New for code.

>It seems to be in regards to " .Range_ " in the the line:
>.Bookmarks("Text1").Range_

The underscore should be preceded by a space
to be recognized as line continuation.
>It seems to be in regards to " .Range _" ...

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP

Re: Problem creating Userform by DarrenIngram

DarrenIngram
Fri Feb 22 06:56:00 PST 2008

Thank you... thank you... thank you...that was perfect!!!

It works.



"Helmut Weber" wrote:

> Hi Darren,
>
> that's why I'm using Courier New for code.
>
> >It seems to be in regards to " .Range_ " in the the line:
> >.Bookmarks("Text1").Range_
>
> The underscore should be preceded by a space
> to be recognized as line continuation.
> >It seems to be in regards to " .Range _" ...
>
> --
>
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Vista Small Business, Office XP
>