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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,147,962
Messages
5,744,057
Members
423,843
Latest member
alex2022

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