Thread: Macro Stepping
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Norman Jones Norman Jones is offline
external usenet poster
 
Posts: 5,302
Default Macro Stepping

Hi George,

Try using the Locals Window to see all variables. Alternatively, open the
Watch Window and add thr required variables or expressions.

Either window may be opened from the View menu.


---
Regards,
Norman


"George" wrote in message
...
When stepping through a macro where values are being changed ( e.g.as in a
loop) is it possible to "see" the current values.

For Example :-

For x= 1 to 19
For y = x+1 to 20
If Cells(x,2) = Cells (y,2) Then ' do something'
next y
next x

I would like to be able to see the values of x & y in the VBA pane as I
step through th macro.

Reagrds
George