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

I am looking for a way to bypass the enable/disable
macros when opening a workbook so that someone else can't
open the workbook without enabling the macros.

Thanks for any Help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Enable Macros

If this was possible, there would be no reason to have it as Virus writers
would bypass it as well.

About the best you can do is hide all you sheets and deny your user the
functionality of the workbook if macros are not enable. Have the macro
place you workbook in an operable condition. (if not enabled, it is not
operable).

If you and your users are using Excel 2000 or later you can certify your
workbook and have the user accept you as a trusted source.

--
Regards,
Tom Ogilvy


"Ronbo" wrote in message
...
I am looking for a way to bypass the enable/disable
macros when opening a workbook so that someone else can't
open the workbook without enabling the macros.

Thanks for any Help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Enable Macros

You can set the Security level to low using the Security option on the visualbasic toolbar. But this is not available at the Workbook file level, only at the users application level. So, i don't know how much control you can exercise over another user's computer and his Excel App settings. As a matter of fact thats the reason they set it up that way, to prevent unwanted macros from running without you knowing.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Enable Macros

Grüezi Ronbo

Ronbo schrieb am 24.05.2004

I am looking for a way to bypass the enable/disable
macros when opening a workbook so that someone else can't
open the workbook without enabling the macros.


As said, this is not possible (fortunatey).

But you could 'hide' your sheets by the following code:

Private Sub Workbook_Open()
ThisWorkbook.IsAddin = False
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.IsAddin = True
ThisWorkbook.Save
End Sub

--
Regards

Thomas Ramel
- MVP for Microsoft-Excel -

[Win XP Pro SP-1 / xl2000 SP-3]
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
ENABLE MACROS CarolAn Excel Discussion (Misc queries) 2 August 4th 09 07:21 PM
Enable macros richzip Excel Discussion (Misc queries) 2 July 28th 08 07:19 PM
how to enable macros Ollakal Excel Discussion (Misc queries) 1 October 19th 05 05:58 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM
re-enable macros Ian[_7_] Excel Programming 1 July 11th 03 03:25 PM


All times are GMT +1. The time now is 01:29 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"