Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2004, 05:24 PM
Authorized User
 
Join Date: May 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default force macros enable

hello all
When i open the file, it probpts for enable/disable. If I say, disable, none of the coding is working. I want to inform the user that if he selects disable macros, the application will close and do the same in action too.

He needs to always select enable macros to access my file.

 Is there a vba code to this job automatically?

 
Old August 14th, 2004, 06:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The protection wouldn't be of much use if anyone could disable it programmatically.

It should only be the macros/vba environment that's disabled - and only when security is set to the highest level, the user won't get a choice.

One way to give information to the user is to provide a message in a cell in the opening sheet (saved with the workbook), telling him that if he can read this message, the security level have disabled the macros and tell him what to do.

Then, in the Workbook.Open, write code to delete the content of the cell with this message.

I think you should test how this works with the different levels of security.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hotkeys in macros HaileyJ Access 2 September 10th, 2007 03:13 AM
Excel macros [email protected] Excel VBA 1 August 29th, 2007 10:50 PM
Enable Update and Enable Delete check boxes don't mihabib ASP.NET 2.0 Basics 2 December 7th, 2006 11:44 AM
Enable - Macros alannoble26 Excel VBA 2 November 28th, 2005 09:08 AM
Macros vbprogwb Access VBA 21 November 12th, 2003 05:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.