Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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?

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
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 07:22 AM.

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

About Us

"It's about Microsoft Excel"