ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   hide button depending on date (https://www.excelbanter.com/excel-worksheet-functions/141041-hide-button-depending-date.html)

Ed Davis

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?


JE McGimpsey

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?



All times are GMT +1. The time now is 12:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com