LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Force macro security warning to be displayed

Hi,

This is the opposite of what is usually asked :-)

Consider the following code:-

Sub OpenWB()
Workbooks.Open "H:\temp\has macros.xls"
End Sub

The workbook 'has macros.xls' contains code that causes
the macro security warning to display if it is opened
manually (assuming that Macro Security is set to
Medium). If I run the code above the Security Warning is
NOT displayed, but I want it to be....

I have written an add-in for Excel (see
http://www.danielklann.com/excel/excel_favourites_add-
in.htm if you're interested) that acts like an Internet
Explorer favourites menu but for Excel. When opening
files I would like the add-in to act as much like Excel
as possible, including prompting the user if a file
contains macros.

Does anyone know how to do this?

For information, I'm using Excel 2003 but the solution
must work with 97 through 2003.

Thanks,
Daniel Klann
 
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
Macro Security Warning msantarc Excel Discussion (Misc queries) 0 October 9th 08 10:44 PM
Macro security warning Skibum Excel Discussion (Misc queries) 2 April 10th 08 08:09 PM
Fault macro security warning Razlapi Excel Discussion (Misc queries) 2 February 8th 08 12:42 PM
Why am I getting 2nd macro security warning? joeu2004 Excel Discussion (Misc queries) 6 January 1st 08 09:44 PM
Macro/Security Warning Marc Excel Discussion (Misc queries) 3 May 30th 05 10:06 PM


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