LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 236
Default How can I suppress the enable macros and save changes messages

sorry, I misspoke. the code is...
Application.ActiveWorkbook.Close SaveChanges:=False
--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"Gary Brown" wrote:

Ron,
To suppress the 'Enable Macros' message, several conditios must be met.
1) The user's security level must be at Medium or lower.
2) You need to add a certificate of authenticity to the workbook.

To accomplish #2,
(i) find the selfcert.exe program on your hard drive.
(ii) follow it's directions to create your certification.
(iii) add the certification to the workbook by (a) opening the workbook and
getting in the Visual Basic Editor [Tools Macro Visual Basic Editor], (b)
select Tools Digital Signature and then 'Choose' the certificate you just
created. (c) select OK.
(iv) save the workbook.

3) The first time the user opens the workbook after you have added a
certification, it will ask them if your certification can be trusted. If
they select YES/OK, they will not be asked to enable macros again when
opening that workbook.

To suppress the save changes message when closing the workbook, you need
to add the following code to the ThisWorkbook module...

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Cancel = True
End Sub

--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"Ron in Walnut Creek" wrote:

I have a multi-worksheet "Dashboard" that is viewed by numerous people. I
want to prevent changes (protect) and suppress the "Enable Macros" message
(default to YES) when opening the workbook and the "Save Changes" message
(default to NO) when closing the workbook.

 
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 GinaC Excel Discussion (Misc queries) 1 April 17th 09 04:36 PM
Save messages ledzepe Excel Discussion (Misc queries) 1 August 3rd 06 09:14 PM
All macros failing part way through with different error messages magpie Excel Discussion (Misc queries) 2 March 24th 05 02:31 PM
all macros failing - different workbooks different error messages. magpie Excel Discussion (Misc queries) 1 March 23rd 05 03:10 PM
The available macros list in XL; how to suppress filename from showing KR Excel Discussion (Misc queries) 1 January 10th 05 07:20 PM


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

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"