Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Make tools button grey

I can vaguely remember using personal workbook when coding for Mac but that
was long time ago and I only use Windows now. Try if this works:

if workbooks.count = 0 then
'i'm not sure what buttons, so...
end if


"Huyeote" wrote in message
...
Thanks for the reply. But my subs called from those buttons are in

Personal
workbook. How can I make a sub in Personal workbook and count number of
workbooks open. If count is zero, set Enabled proper to false.

Regards,

Huyeote

"kiat" wrote in message
...
Set its Enabled property to False: yourbutton.enabled = false

"Huyeote" wrote in message
...
Hi, all, I notice that colour of Excel's button in Excel's tools bar

will
go
grey when there is no workbook open. Can anybody tell me how to make

my
own
DIY macro button's colour go grey (invalide) just as those Excel's

build-in
buttons do. Thanks.

Huyeote










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
Enable the Options button from the Tools Menu Dacasinoking Excel Worksheet Functions 2 April 14th 07 11:10 PM
Can't make changes in Tools/Options in Excel 2003(2) CDNewell Setting up and Configuration of Excel 0 February 18th 06 01:49 AM
how do I make "Add-in" in Excel tools menu active? Its grey now Ant Excel Discussion (Misc queries) 1 January 17th 06 01:00 PM
In Tools Jibble Excel Discussion (Misc queries) 3 August 5th 05 12:59 PM
Make tools button grey losmac Excel Programming 0 August 25th 03 05:04 PM


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