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

Is there a way to allow macros automatically when opening a workbook using
code in the WorkBook_Open section?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Force Acceptance of Macros

No, otherwise what would be the point of allowing the user to set the
security level?

--

Vasant


"mot60" wrote in message
...
Is there a way to allow macros automatically when opening a workbook using
code in the WorkBook_Open section?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Force Acceptance of Macros

How do you ensure that the user allows macros when a workbook is opened? If
macros aren't allowed, then functionality is lost.

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
No, otherwise what would be the point of allowing the user to set the
security level?

--

Vasant


"mot60" wrote in message
...
Is there a way to allow macros automatically when opening a workbook

using
code in the WorkBook_Open section?






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Force Acceptance of Macros

Unfortunately, you can't, without using some kind of digital signature. Even
then, the user has to accept you as a trusted source.

http://support.microsoft.com/default...;en-us;Q288985

--

Vasant

"mot60" wrote in message
...
How do you ensure that the user allows macros when a workbook is opened?

If
macros aren't allowed, then functionality is lost.

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
No, otherwise what would be the point of allowing the user to set the
security level?

--

Vasant


"mot60" wrote in message
...
Is there a way to allow macros automatically when opening a workbook

using
code in the WorkBook_Open section?








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Force Acceptance of Macros

Two common suggestions a

Save your workbook with one worksheet visible. It should have "Can't use
without macros" emblazoned across the screen.

Then have an auto_open macro (or workbook_open event) hide this sheet and unhide
the real ones.

If the user doesn't allow macros, they don't see the other sheets. If they do
allow macros, your code will hide the warning sheet and show the real ones.

The second suggestion is to use a dummy workbook that only has one purpose--to
open up the real workbook.

If the dummy workbook is opened with macros disabled, then it can't open the
real one.

If macros are enabled, it can open the real one (with macros enabled) and then
just close itself to get out of the way.



mot60 wrote:

How do you ensure that the user allows macros when a workbook is opened? If
macros aren't allowed, then functionality is lost.

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
No, otherwise what would be the point of allowing the user to set the
security level?

--

Vasant


"mot60" wrote in message
...
Is there a way to allow macros automatically when opening a workbook

using
code in the WorkBook_Open section?





--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Force Acceptance of Macros

Thanks for the info. I have used the sheets idea.
"Dave Peterson" wrote in message
...
Two common suggestions a

Save your workbook with one worksheet visible. It should have "Can't use
without macros" emblazoned across the screen.

Then have an auto_open macro (or workbook_open event) hide this sheet and

unhide
the real ones.

If the user doesn't allow macros, they don't see the other sheets. If

they do
allow macros, your code will hide the warning sheet and show the real

ones.

The second suggestion is to use a dummy workbook that only has one

purpose--to
open up the real workbook.

If the dummy workbook is opened with macros disabled, then it can't open

the
real one.

If macros are enabled, it can open the real one (with macros enabled) and

then
just close itself to get out of the way.



mot60 wrote:

How do you ensure that the user allows macros when a workbook is opened?

If
macros aren't allowed, then functionality is lost.

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
No, otherwise what would be the point of allowing the user to set the
security level?

--

Vasant


"mot60" wrote in message
...
Is there a way to allow macros automatically when opening a workbook

using
code in the WorkBook_Open section?





--

Dave Peterson



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
Macros - Force execution using workbook_open Guy Normandeau Excel Discussion (Misc queries) 3 July 6th 06 08:29 PM
How can force enable macros to be able to open my workbook? kcdonaldson Excel Discussion (Misc queries) 3 December 5th 05 06:16 PM
Force Enable Macros Jake Marx[_2_] Excel Programming 1 October 24th 03 01:24 AM
Force Enable Macros Alan Excel Programming 0 September 24th 03 08:17 PM
Force Enable Macros Ed[_9_] Excel Programming 0 September 24th 03 07:59 PM


All times are GMT +1. The time now is 03:47 AM.

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

About Us

"It's about Microsoft Excel"