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

Hi,
Is there any VBA code that closes the Workbook if a user does not agree to
enable macros on startup?.

TIA,
Mickey


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Disabled Macros

MDlake, if the user does not enable macros how is the code to close the
workbook going to run? Have a look here for a workaround

http://www.danielklann.com/excel/for...be_enabled.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"MBlake" wrote in message
...
Hi,
Is there any VBA code that closes the Workbook if a user does not agree to
enable macros on startup?.

TIA,
Mickey



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

Maybe you could lock and protect the entire workbook and have the startup
macro unlock it. That way if the user does not enable the macros the
workbook will be useless.

"MBlake" wrote:

Hi,
Is there any VBA code that closes the Workbook if a user does not agree to
enable macros on startup?.

TIA,
Mickey



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Disabled Macros

Thanks for the replies, I looked at the code suggested and also a resource
here which I found very useful, others may as well -
http://www.vbaexpress.com/kb/getarti...b_id=379#instr

Thanks again,
Mickey


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
Macros are disabled . . . and they shouldn't be pglufkin Excel Discussion (Misc queries) 3 January 2nd 07 06:38 PM
Macros are disabled cgore Excel Discussion (Misc queries) 1 February 17th 06 05:33 PM
Disabled Macros Susan Hayes Excel Programming 1 August 5th 04 11:16 PM
macros disabled Dan E[_2_] Excel Programming 0 September 8th 03 04:01 PM
disabled macros Martin Wheeler Excel Programming 2 September 6th 03 03:20 AM


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