![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 9
|
I have aspreadsheet that contains a control button to enable the user to eamil the sheet by clicking on the button. How do I disable this after it has been pressed to prevent multiple copies being emailed by enthusiastic mouse clickers. Is it also possible to dim the control button or change it's colour once it has been clicked?
Thanks Craig |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
In the click event sub of your command button, add the following at the end, this will also grey out the button: -
CommandButton1.Enabled = False |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|