When i press F8 to check my Code

mark692

Active Member
Joined
Feb 27, 2015
Messages
321
Office Version
  1. 2016
Platform
  1. Windows
hi there i have a few modules with macro,

when i used F8 to check my code in a module, it brings me to other macro with Functions even though its not part of my code that im testing with F8?

i notice the code are always with "Function" at the beggining, can i avoid it? thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
That behaviour happens when a function is used inside the macro
If you require further help ... post the macro being checked
 
Upvote 0
That behaviour happens when a function is used inside the macro
It occurs for me even when the function is not called from the macro I am stepping through but if the function is being used in a worksheet cell formula (in any sheet in the workbook). I'm assuming that is what the OP is experiencing too.

I'm not sure if there is an easy way to disable this but I often comment out the function(s) temporarily, or look at some of the options in the vba Debug menu:
1594972121742.png
 
Upvote 0
It occurs for me even when the function is not called from the macro I am stepping through but if the function is being used in a worksheet cell formula (in any sheet in the workbook). I'm assuming that is what the OP is experiencing too.

I'm not sure if there is an easy way to disable this but I often comment out the function(s) temporarily, or look at some of the options in the vba Debug menu:
View attachment 18415

yes this is what i mean, ill try this one, thanks
 
Upvote 0
In that case, something else to try could be to set calculations to manual (see formula tab) whilst stepping through the macro
- remember to set to automatic afterwards

This suggestions is not helpful if sheet calculations are required when stepping through the code
 
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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