How to disable rename and prevent from delete an excel file by VBA

alamgirjuab

New Member
Joined
Apr 26, 2017
Messages
13
Hi,
This is Alamgir. I have a multi functional excel file. I want nobody can delete or rename this file without my permission. If it is possible by VBA or other something like that Please inform me anyone. I don't want to use any external software, I want to build up my own way. I am waiting for kind response of any experienced person...............
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I moved this question to the "General Excel & Other Discussions" questions, as I think the answer may be something non-Excel related.
I doubt a VBA solution will work, because VBA can easily be disabled (and often is, by default). And you cannot force VBA to run (that would be a huge security issue!).

I have seen some people hide all the sheets/data in their file, so that the only way a person can view it is to allow VBA, which will then unhide the sheets/data for them.
So while you cannot force VBA, you can strongly encourage people to enable it (by making the file virtually unusable if they do not).

I will be interested to see what suggestions people may have.
 
Upvote 0
VBA in a closed workbook cannot prevent the workbook being deleted or renamed. Period. Any such restrictions would have to be imposed at the operating system/network level.
 
Upvote 0

Forum statistics

Threads
1,223,793
Messages
6,174,635
Members
452,575
Latest member
Fstick546

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