How to quickly identify the "offender" code? - Debuging VBA

actjfc

Active Member
Joined
Jun 28, 2003
Messages
416
Excel Friends,

I got a large Excel workbook with too many VBA modules/procedures/functions to count. One of the sheets is governed by many macros that also call other macros. This specific sheet has one range that changes its size by populating some rows from n to m (via the user interface), where m varies, m>n. I need to debug some issues about "m," How can I quickly identify the "offender" code? I mean the code that changes the "m" value. I should say that there is a kind of named range that changes somewhere in the code while running.

Thanks for any help!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Setup a Watch of that value while using the Step Into Debugger option.
There are some options to let the code run until a variable hits a certain value as well.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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