ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Stepping through VBA code in Excel (https://www.excelbanter.com/excel-programming/298274-stepping-through-vba-code-excel.html)

Bill Murphy

Stepping through VBA code in Excel
 
What is the best way to set breakpoints and step through code in Excel VBA?
To edit the VBA code I have to tell Excel to disable macros when I open a
spreadsheet, and then I can't run the code to step through it.

Bill



Chris

Stepping through VBA code in Excel
 
Here is something i use all the time: Sto

Put Stop as the first executable line in the code you want toi step through. The code will cease execution and allow you to step through.

Vasant Nanavati

Stepping through VBA code in Excel
 
Why do you have to disable macros?

If you need to disable only the startup macros, keep the Shift key depressed
while the workbook is opening.

--

Vasant

"Bill Murphy" wrote in message
...
What is the best way to set breakpoints and step through code in Excel

VBA?
To edit the VBA code I have to tell Excel to disable macros when I open a
spreadsheet, and then I can't run the code to step through it.

Bill






All times are GMT +1. The time now is 10:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com