Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default make button invisible if macros disabled

I have a worksheet with a button on it. Clicking on the button displays a
series of userforms. I have a Workbook_BeforePrint sub that makes the
button's visible property false, so it doesn't print.

I want the button to be invisible if a user opens the file without macros. I
have tried:
1) making the button invisible, and then using the workbook_open sub to
make it visible if macros are enabled. It was still visible without macros
2) Using a cell on the worksheet as a sort of button, and used colors and
borders to make it only appear if macros are enabled. This worked, but it was
really ugly.
3) I considered using Chip Pearson's method for ensuring macros are enabled
(by setting the visibility properties of each sheet:
http://www.cpearson.com/excel/EnableMacros.aspx). However, many of the
features of the workbook are still valuable to the user without macros, and I
want them to be able to use them.

Any thoughts?
Thanks,
~ Horatio
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
How to make hidden sheet invisible LLee2 New Users to Excel 9 April 8th 07 06:58 AM
Macros gets disabled by default chakradhar Excel Worksheet Functions 1 March 30th 07 04:28 PM
Macros gets disabled by default chakradhar Excel Discussion (Misc queries) 0 March 30th 07 04:12 PM
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


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