Macro dont stop completely

cvecve

New Member
Joined
May 4, 2016
Messages
2
Hello,
I have a userform that starts a macro but after exit and end the macro it is still "running" and in the editor i have to press the 'reset' button in the command bar to stop it completely.

How can is stop it automatically? With vba code?

Thanks in advance for your help.
Cees
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi,

you'd probably have to share the macro code driving your userform to allow people here to see whats happening ..

Sounds like it is stuck in an infinite loop for some reason...

Rgds
Rob
 
Upvote 0
Welcome to the Board!

As Rob said, we would probably need to see your code. See here for how to post your code using Code Tags to make it easily readable on this board:
 
Upvote 0
Hi,
i found the solution, just put the 'end' command before the end sub.
That usually is not necessary, but without seeing your code, we really cannot comment on it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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