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 / March 2008

Tip: Looking for answers? Try searching our database.

How do I invoke the "Reset" button in the VB Editior via code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vinita - 12 Mar 2008 04:59 GMT
Hi,

I am writing a macro in an MPP.The macro runs fine for the first time.But
the next time its run its popping up an Error.But again after clicking the
"Reset" button in the VB Editor the code works fine again.

Is there any way that I can "Reset" in the code itself?So that it will work
fine the next time its run.

Thanks in advance,
Vinita
Doug Robbins - Word MVP - 12 Mar 2008 09:42 GMT
Better to try and find out what is causing the error.  Click on the Debug
button to see what line of code is highlighted when the error occurs.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi,
>
[quoted text clipped - 8 lines]
> Thanks in advance,
> Vinita
Vinita - 12 Mar 2008 10:26 GMT
Im getting the error "Run time error 1004  Method Cells of '_Global' failed "
at the following line of code.
Cells.Find(what:=subtask_name, lookat:=xlWhole,
earchDirection:=xlNext).Activate

> Better to try and find out what is causing the error.  Click on the Debug
> button to see what line of code is highlighted when the error occurs.
[quoted text clipped - 11 lines]
> > Thanks in advance,
> > Vinita
Vinita - 12 Mar 2008 10:31 GMT
Im getting "Run time Error 1004 Method Cells of object '_Global' failed at
the following line of code.

Cells.Find(what:=subtask_name, lookat:=xlWhole,
searchDirection:=xlNext).Activate
     

> Better to try and find out what is causing the error.  Click on the Debug
> button to see what line of code is highlighted when the error occurs.
[quoted text clipped - 11 lines]
> > Thanks in advance,
> > Vinita
Doug Robbins - Word MVP - 12 Mar 2008 10:58 GMT
I suggest that you post your question to the
microsoft.public.excel.programming newsgroup.  This one is for the use of
VBA in Word and the object model for Excel is quite different.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Im getting "Run time Error 1004 Method Cells of object '_Global' failed at
> the following line of code.
[quoted text clipped - 19 lines]
>> > Thanks in advance,
>> > Vinita

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.