PC Review


Reply
Thread Tools Rate Thread

Automation Excel 'disable macro' prompt

 
 
=?Utf-8?B?VHJveQ==?=
Guest
Posts: n/a
 
      9th Aug 2004
How do I answer the disable macro prompt automatically when opening an Excel
workbook? We are using Excel 97 and 2002. In 2002 we want the Medium
security (prompt user) to safeguard against e-mail attachments... but our
..NET app needs to open as Read-Only and Disable Macros at all times. Is
there a way to answer these questions programatically before opening the
workbook?

I'm also looking for any good references on the Excel object model, as we
dont have any.
Thx,
troy
 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      10th Aug 2004
On Mon, 9 Aug 2004 15:47:01 -0700, "Troy" <(E-Mail Removed)> wrote:

¤ How do I answer the disable macro prompt automatically when opening an Excel
¤ workbook? We are using Excel 97 and 2002. In 2002 we want the Medium
¤ security (prompt user) to safeguard against e-mail attachments... but our
¤ .NET app needs to open as Read-Only and Disable Macros at all times. Is
¤ there a way to answer these questions programatically before opening the
¤ workbook?

No. You can change your Security Level to Low which will eliminate the warning dialog. The only
other alternative is to digitally sign your Excel documents.

¤ I'm also looking for any good references on the Excel object model, as we
¤ dont have any.

See if the following helps:

Understanding the Excel Object Model from a .NET Developer's Perspective
http://msdn.microsoft.com/library/de...l/ExcelObj.asp


Paul ~~~ (E-Mail Removed)
Microsoft MVP (Visual Basic)
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Spooling Prompt in Word Automation CK Microsoft Word Document Management 0 3rd Sep 2009 10:07 AM
Re: disable Excel AutoExec macro when opening via Access Automation Dale Fye Microsoft Access 3 15th May 2008 04:10 AM
Re: disable Excel AutoExec macro when opening via Access Automation Dale Fye Microsoft Access External Data 3 15th May 2008 04:10 AM
Disable macro in excel automation with VC++/Win2k mbozzaotre Microsoft Excel Programming 3 14th Jun 2005 08:02 PM
Disable macro through automation Scott Wallace Microsoft Excel Programming 2 15th Oct 2003 07:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:44 PM.