Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

Problem with a user form command button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Diane - 24 Jul 2007 21:26 GMT
I am having trouble with a command button on a user form I created in Word
2007.
I used the instructions from the word.mvps.org website (which were great
BTW) and I get an error message that states:
Comple error:
Method or data member not found
When I click ok  Private Sub CommandButton1_Click() is highlighted yellow
and there is a yellow arrow pointing to it.  I'm assuming that this means
there is a problem with this particular command but I can't figure out what
it is.  
I don't know if it is a problem with using 2007 and older instructions or if
I am just missing something.  
Any help would be much appreciated.
Thanks!
Ed - 25 Jul 2007 20:10 GMT
Hi Diane,

I'm guessing that there's something inside the sub procedure that it doesn't
like.

If you can post the code from the "Private Sub CommandButton1_Click()" line
to the first "End Sub" after the line, someone may be able to help.

Regards.

Ed

> I am having trouble with a command button on a user form I created in Word
> 2007.
[quoted text clipped - 10 lines]
> Any help would be much appreciated.
> Thanks!
David Sisson - 25 Jul 2007 20:25 GMT
Run it again and when it stops, press F8 to allow the code to run a
step at a time.  Keep pressing F8, slowly, until it errors out again.
Sometimes then editor will return to the start of the procedure
instead of stopping at the actual problem.

And, yes, please post the code as Ed suggested.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.