Hello all,
Is there anyway to add a "cancel" in this code?
I only see "OK" when a button is clicked.
Thanks.
Please Login or Register to view this content.
Hello all,
Is there anyway to add a "cancel" in this code?
I only see "OK" when a button is clicked.
Thanks.
Please Login or Register to view this content.
here you can find everything
https://docs.microsoft.com/en-us/off...sgbox-function
Sorry Gue,
I am not really familiar with the VBA if you can please tell me how to add this then.
vbOKCancel
Thanks.
I need to edit this code to add this : vbOKCancel
Hi
Ok, I was able to add it but when I click the button and I click the "cancel", the worksheet still save. Please edit the code. Thank you.
Please Login or Register to view this content.
your code:Please Login or Register to view this content.
if you first save your workbook withthen the next linePlease Login or Register to view this content.
makes no sense.Please Login or Register to view this content.
Setting saved to True means that a modified workbook will be closed without either saving it or being prompted to save it. You can skip this line.
Please Login or Register to view this content.
This is what I have so far, but after some of my entry and I click the button and I cancel. It still saved it
yes because your first statement says "save the workbook"
change it toPlease Login or Register to view this content.
Yay! Thank you Gue.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks