Macro running nobody can stop it.

Leandro

New Member
Joined
Dec 30, 2013
Messages
7
Hi guys,

Today I finished The "Excel VBA and Macros with MRExcel". This course was awesome I learned a lot.


I urge someone help me to write some code that can "disable the function stop a macro when running". The objective is: if the macro running nobody can stop it.

Thanks,
Leandro
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
Leandro,

Welcome to the MrExcel forum.

You should be able to stop code execution by using CTRL + BREAK
 
Upvote 0

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
Leandro,

You should be able to stop code execution by using CTRL + BREAK

If you are using Windows 8, you should be able to stop code execution by using CTRL + Fn + BREAK
 
Upvote 0

Leandro

New Member
Joined
Dec 30, 2013
Messages
7
Leandro,

Welcome to the MrExcel forum.

You should be able to stop code execution by using CTRL + BREAK



Thanks Hiker

I don't know if I was clear but I'd like to know how can I do some code that any user can't stop the macro. The macro should play without anybody stop on the middle. The user can't stop the Macro.

Thanks
 
Upvote 0

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
ADVERTISEMENT
I Don't think that's possible. And it would be a pretty bad security issue too.
 
Upvote 0

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,154
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
ADVERTISEMENT
Leandro,

I agree with Jonmo1, "it would be a bad security issue too."
To add to the comments so far...

Besides the security issue, the computer is not yours, why do you think you should be able to deny the owner the use of his/her own computer? If it were my computer you did that to, I be contacting a lawyer and asking him about suing you. Anyway, even if you thought of some way to prevent breaking your macro, the user could always turn off his computer to do so.
 
Upvote 0

Leandro

New Member
Joined
Dec 30, 2013
Messages
7
So guys I wanna it because I've been developed a spreadsheet to my work. I wanna keep the logical and code in safe. I do not want anyone to steal my project. I've develop some code that can validate when the user access the spreadsheet, but if someone stop the macro on the middle can have all the logical. Cause this I wanna this type of code. Do you guys have any advice?
 
Upvote 0

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
So you just want to protect the code?

You can password protect the code so that even if they stop the macro, they won't be able to see the code.

In the VBA Project, click Tools - VBA Project Properties - Protection.
You can put a password there.
 
Upvote 0

Forum statistics

Threads
1,195,588
Messages
6,010,600
Members
441,558
Latest member
lambierules

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
Top