Hi guys,
Can someone please help me add in a cancel button to this and then end the sub.. thanks so much in advance,
![]()
Please Login or Register to view this content.
Sars
Hi guys,
Can someone please help me add in a cancel button to this and then end the sub.. thanks so much in advance,
![]()
Please Login or Register to view this content.
Sars
Hello SarahPintal,
The "Cancel" button will return a "False" (boolean) and cause an error. You can trap the error and decide what to do next. This example simply exits the macro when the user chooses "Cancel".
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Is this what you need?
![]()
Please Login or Register to view this content.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
![]()
Please Login or Register to view this content.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks