A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

hide button depending on date



 
 
Thread Tools Display Modes
  #1  
Old May 1st 07, 03:08 AM posted to microsoft.public.excel.worksheet.functions
Ed Davis
external usenet poster
 
Posts: 58
Default hide button depending on date

Is there a way to hide a button on a sheet unless the date in a cell is the
last day of the month?

Ads
  #2  
Old May 1st 07, 08:46 AM posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
external usenet poster
 
Posts: 4,624
Default hide button depending on date

One way (assuming it's a button from your forms toolbar):

Put this in your ThisWorkbook code module:

Private Sub Workbook_Open()
Worksheets("Sheet1").Buttons("Button 1").Visible = _
Day(Date + 1) = 1
End Sub

If you're unfamiliar with macros, see

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In article >,
"Ed Davis" > wrote:

> Is there a way to hide a button on a sheet unless the date in a cell is the
> last day of the month?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hide or unhide rows with button Bea Excel Discussion (Misc queries) 15 September 19th 07 07:03 PM
Want to show/hide cells depending on other cells results Marco Excel Discussion (Misc queries) 0 August 15th 06 06:21 PM
How can I hide a paste button that appears? Kenzie Excel Discussion (Misc queries) 1 February 3rd 06 08:04 PM
hide a button Natalie Excel Worksheet Functions 1 March 14th 05 02:29 PM
Hide button from Template Dennis Excel Discussion (Misc queries) 1 February 9th 05 11:51 PM


All times are GMT +1. The time now is 04:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004-2013 ExcelBanter.
The comments are property of their posters.