Problem creating Userform

D

Darren Ingram

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

Helmut Weber

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top