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

Hi,
I wrote script which copy data from one sheet to second sheet, It's
important for this excel sheet. I used method call Auto_Open().
If I open the document, Excel ask user If he want Enable Macros.
I dont want see this dialog and Enable Macros automaticaly, Is it possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Enable Macros

Hi.

You can't do that but there are ways around it and the most common is on
closing the workbook (workbook_Before_Close) make all the sheets except one
xlveryhidden. If a user enables macros then unhide all the worksheets for use
using the workbook_Open event . If macros aren't enabled display the single
unhidden sheet containing a suitable message that the workbook is useless
unless macros are enable

Not bullet proof but not bad either.


Mike

"Martin M." wrote:

Hi,
I wrote script which copy data from one sheet to second sheet, It's
important for this excel sheet. I used method call Auto_Open().
If I open the document, Excel ask user If he want Enable Macros.
I dont want see this dialog and Enable Macros automaticaly, Is it possible?

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

Ok, This is good way :) :)

"Mike H" wrote:

Hi.

You can't do that but there are ways around it and the most common is on
closing the workbook (workbook_Before_Close) make all the sheets except one
xlveryhidden. If a user enables macros then unhide all the worksheets for use
using the workbook_Open event . If macros aren't enabled display the single
unhidden sheet containing a suitable message that the workbook is useless
unless macros are enable

Not bullet proof but not bad either.


Mike

"Martin M." wrote:

Hi,
I wrote script which copy data from one sheet to second sheet, It's
important for this excel sheet. I used method call Auto_Open().
If I open the document, Excel ask user If he want Enable Macros.
I dont want see this dialog and Enable Macros automaticaly, Is it possible?

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
choose default macros Not Enabled / Macros Enable Setting BEEJAY Excel Programming 2 June 30th 06 01:07 PM
VBA select default Don't Enable / Enable macros Setting BEEJAY Excel Programming 1 June 29th 06 08:45 PM
Enable Macros MESTRELLA29[_2_] Excel Programming 2 March 15th 05 10:41 PM
Enable Macros Ronbo Excel Programming 3 May 24th 04 06:32 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


All times are GMT +1. The time now is 08:50 PM.

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"