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
remote web workplace and full screen setting not working
convertin CString to const char*
One report column in Italics
Paging File Settings
vb.net 2.0 winforms - how to detect unsaved data in databound fields?
Error 405 method not allowed when using WebClient()
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI<wbr />_AS" and "Latin1_General_CI_AS" in the equal to operation
Sorting Column names while viewing data in TOAD
After_Update Event not firing
Load picture into image using a recordset