I want to enable a button of excel sheet if my system day is Thursday. All other day the button will be disabled. Only every Thursday the button will be enable. How to do this?
I want to enable a button of excel sheet if my system day is Thursday. All other day the button will be disabled. Only every Thursday the button will be enable. How to do this?
Something like
Please Login or Register to view this content.
This in thisworkbook.
and this at the end of your code attached to the commandbutton.Please Login or Register to view this content.
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
bakerman2,
Not works bro. I want my command button will be enable for one click for Thursday only. After one click my button will be disable for next Thursday for one click.
Last edited by jeffreybrown; 03-30-2019 at 06:19 AM. Reason: Removed quote!
Does works bro. Test example file.
dcmphi,
1) Prepare 1 very hidden sheet named like "HiddenSheet".
2) Workbook_Open event code
3) Click event codePlease Login or Register to view this content.
So that the CommandButton will be disabled after the click even you reopen on Thursday again.Please Login or Register to view this content.
Last edited by jindon; 03-30-2019 at 06:10 AM.
Yes, the penny dropped.
Check Jindon's code in Post#7.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks