Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Ensuring Macros are running


I have an Excel 2003 Application taht uses Excel Macros to protect cells
within the sheet as data is entered. This is working well so far.

Before saving it I have a Macro I run to hide all the useful sheets and
then Auto_Run is set to unhide them again. Thus if Macros are
disabled whent he sheet is opened, Auto_Run won't run and the sheets
won't be accessible.

The problem I have is that I, currently, have no way to prevent a user
saving the sheet with all tabs visible and then reopening with Macros
disabled, and then the Macros that run when data is entered do not run
either.

One way round this would be to force a Macro to run when the sheet is
saved, which could rehide the appropriate sheets again. Alternatively
if the normal System Save can be disabled I coudl then force the user
to save via a Macro attached to a button.

Does anyone have any ideas that could help here?

Regards
CLive


--
ccarmock
------------------------------------------------------------------------
ccarmock's Profile: http://www.excelforum.com/member.php...o&userid=27670
View this thread: http://www.excelforum.com/showthread...hreadid=472333

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Ensuring Macros are running


Good evening Clive

Macros are pretty powerful things can irreversibly damage or remove
files and for this reason Microsoft have implemeted some protection for
the user from rogue macros. You have a few possible actions:
1. Set your macro security to low - not recommended for obvious
reasons, and anyway a user could easily reset it to medium to prevent
the macro from running.
2. Purchase yourself a digital certificate and set yourself up as a
trusted source so that macros signed by you will run unchecked.
3. Design the macro as a seperate file run as an add-in as this will
run without giving the user the chance to cancel it.
4. Save the file with all the sheets (except perhaps a warning sheet
telling the user that macros must be run) hidden (or xlVeryHidden) and
use a macro to unhide all the sheets and hide the warning sheet.

Be aware that none of these methods is foolproof and if someone really
wanted to break your system and access information that perhaps they
shouldn't then you will struggle to stop them with Excel.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=472333

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running 4 macros at once Secret Squirrel Excel Discussion (Misc queries) 2 January 31st 09 09:40 PM
Running VB macros gwtechie72 New Users to Excel 2 November 12th 07 10:04 PM
running macros Jay Excel Discussion (Misc queries) 2 April 29th 05 12:56 AM
HELP - Running Macros in VBA Louise New Users to Excel 7 April 6th 05 03:21 PM
Macros not running StephanieH Excel Programming 2 December 14th 04 01:39 PM


All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"