Microsoft
Software
Hardware
Network
Question : Userform - button for close and save
Hello experts
I am building a userform in Excel VBA. In that userform I put some numbers and names that are then stored in sheet2.
This is done over and over again.
Ones I have put in numbers and names in all the textboxes on I want to close the userform and save the input data in sheet2.
I have a button on the userform and when clicking that I want to save the workbook and close the userform.
Can you help me with a code that can do that?
Answer : Userform - button for close and save
Hi,
Try
Kris
1: 2: 3: 4:
Private Sub CommandButton1_Click() ThisWorkbook.Save Unload Me End Sub
Open in New Window
Select All
Random Solutions
Trend Micro CSM and Hyper V
How to convert a decimal value to 1 correct figure in an access query
CreateEventProc error 57017 Event Handler Invalid
Does sysprep completely clean old network, domain and user settings in XP ?
Why won't "WMIC OS Where Primary=True Call Reboot" not force reboot when dialog box is open?
Filtering Access Report
Access 97 tables corrupted after conversion to 2003
Users receive Active X error when opening email attachments
Excel Format Conditional Formatting w/ 4 Conditions
SUMPRODUCT formula for capturing occurrence