Macro execution help

Dan Wilson

Well-known Member
Joined
Feb 5, 2006
Messages
507
Office Version
  1. 365
Platform
  1. Windows
Good day. I am running Office 365 (updated) on Windows 10 Home. I have recently been given a Macro that works extremely well although I don't understand all of the coding. Is there a way that I can execute the Macro one line at a time and see the results of that line? Thank you for any help with this.
Dan Wilson...
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
It is hard to day, because we don't really know what the macro is doing or what the code looks like.
Note that you can go through a macro one line at a time by stepping into it and using the F8 key.
If you hover over any variables along the way, it will show you the value.

You can also put break points and message boxes in there to stop at certain points, and see what it has done.

Lastly, you can use the Immediate Window.
See: Use the Immediate window (VBA)
and 5 Ways to Use the VBA Immediate Window - Excel Campus
 
Upvote 0
Solution
It is hard to day, because we don't really know what the macro is doing or what the code looks like.
Note that you can go through a macro one line at a time by stepping into it and using the F8 key.
If you hover over any variables along the way, it will show you the value.

You can also put break points and message boxes in there to stop at certain points, and see what it has done.

Lastly, you can use the Immediate Window.
See: Use the Immediate window (VBA)
and 5 Ways to Use the VBA Immediate Window - Excel Campus


Good day Joe4. Thank you for responding. That is what I was looking for. I know about stepping into a Macro, but I did not know how to make it advance.
Dan Wilson...
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,684
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top