privent downlaod embed excel file by marco & force user to run marco as well

shatonak2004k

New Member
Joined
Jun 16, 2021
Messages
2
Office Version
  1. 2019
  2. 2016
  3. 2013
  4. 2011
  5. 2010
  6. 2007
Platform
  1. Windows
hi, I embed an excel file by One drive, and as you know, its downloadable, so I use an "Macro" , to delete Downloaded file, by user, immedialtly after open file, so if user donot enable "Macro", its not possible to delete file, so i search and found a famous method to "force user to enable Macro" by use an notification sheet and "veryhidden" sheets properties, to do so.
now here is my problem, i am capable of protecting my file, by using an Macro code to delete Downloaded file and capable to "force user to enable Macro", as well, but this makes my sheets hidden on embedded web version of my file, as well.I need my sheets be visible on web version of my file and capable of deleting Downloaded version by Macro code as well.
NOW, CAN YOU HELP ME.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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