PC Review


Reply
Thread Tools Rate Thread

Debug/Step mode in macro/VBA

 
 
Jim
Guest
Posts: n/a
 
      29th Jul 2008
I'm trying to make a minor code addition to an undocumented Access 2000 app
under v2003.

A menu selection executes a RunCode calling a function
RunBeginUpdatePricing(). I've looked in all obvious modules for this
function and came up with nothing...

First question, is there a way to turn ON tracing/stepping (in the macro)
so I can see where this code is executing from? Will this automatically open
the VBA editor?

Second, is there keyboard shortcut that will EXIT or SKIP the remaining part
of a procedure or function and continue on to the next proc/func? If I knew
where the code was going, I would just comment out the line that calls the
function. But I want to be able to "mark my trail" yet skip over the
functions whose purpose I've already determined.

Thanks!

--
Jim McDermott
 
Reply With Quote
 
 
 
 
strive4peace
Guest
Posts: n/a
 
      30th Jul 2008
Hi Jim,

if you want to execute one line at a time, you can set a Breakpoint in
the code, which is temporary -- or you can put this statement in your code

Stop
(just remember to take it out when you are done debugging <smile>)

once the code stops, press the F8 key repeatedly to execute one line at
a time

~~~

Error Handling and Debugging Tips and Techniques for Microsoft Access,
VBA, and Visual Basic
by Luke Chung
http://www.fmsinc.com/tpapers/vbacode/Debug.asp

Warm Regards,
Crystal

remote programming and training

Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace

*
(: have an awesome day
*




Jim wrote:
> I'm trying to make a minor code addition to an undocumented Access 2000 app
> under v2003.
>
> A menu selection executes a RunCode calling a function
> RunBeginUpdatePricing(). I've looked in all obvious modules for this
> function and came up with nothing...
>
> First question, is there a way to turn ON tracing/stepping (in the macro)
> so I can see where this code is executing from? Will this automatically open
> the VBA editor?
>
> Second, is there keyboard shortcut that will EXIT or SKIP the remaining part
> of a procedure or function and continue on to the next proc/func? If I knew
> where the code was going, I would just comment out the line that calls the
> function. But I want to be able to "mark my trail" yet skip over the
> functions whose purpose I've already determined.
>
> Thanks!
>

 
Reply With Quote
 
Jim
Guest
Posts: n/a
 
      30th Jul 2008
Thanks!
--
Jim McDermott


"strive4peace" wrote:

> Hi Jim,
>
> if you want to execute one line at a time, you can set a Breakpoint in
> the code, which is temporary -- or you can put this statement in your code
>
> Stop
> (just remember to take it out when you are done debugging <smile>)
>
> once the code stops, press the F8 key repeatedly to execute one line at
> a time
>
> ~~~
>
> Error Handling and Debugging Tips and Techniques for Microsoft Access,
> VBA, and Visual Basic
> by Luke Chung
> http://www.fmsinc.com/tpapers/vbacode/Debug.asp
>
> Warm Regards,
> Crystal
>
> remote programming and training
>
> Access Basics
> 8-part free tutorial that covers essentials in Access
> http://www.AccessMVP.com/strive4peace
>
> *
> (: have an awesome day
> *
>
>
>
>
> Jim wrote:
> > I'm trying to make a minor code addition to an undocumented Access 2000 app
> > under v2003.
> >
> > A menu selection executes a RunCode calling a function
> > RunBeginUpdatePricing(). I've looked in all obvious modules for this
> > function and came up with nothing...
> >
> > First question, is there a way to turn ON tracing/stepping (in the macro)
> > so I can see where this code is executing from? Will this automatically open
> > the VBA editor?
> >
> > Second, is there keyboard shortcut that will EXIT or SKIP the remaining part
> > of a procedure or function and continue on to the next proc/func? If I knew
> > where the code was going, I would just comment out the line that calls the
> > function. But I want to be able to "mark my trail" yet skip over the
> > functions whose purpose I've already determined.
> >
> > Thanks!
> >

>

 
Reply With Quote
 
strive4peace
Guest
Posts: n/a
 
      30th Jul 2008
you're welcome, Jim happy to help

Warm Regards,
Crystal

remote programming and training

Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace

*
(: have an awesome day
*




Jim wrote:
> Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Step from VB6 to .Net (COM) in Debug Mode? Terry Microsoft VB .NET 2 15th Aug 2008 10:13 PM
BeginReceive return zero length buffer when run ,and work correctly when use step by step debug mode Daniel Microsoft C# .NET 22 21st Sep 2006 02:26 PM
Macro Works but not in Debug Step mode Bob Smedley Microsoft Excel Programming 3 31st Jan 2006 04:28 PM
How show value of variable in single step debug mode? =?Utf-8?B?Q2hldCBTaGFubm9u?= Microsoft Excel Programming 2 28th Nov 2005 06:57 AM
Debug Step vs Run Mode Arthur Microsoft Excel Programming 3 9th Nov 2003 05:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:43 PM.