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
SBS 2003 ISA 2004 LAT problem
Deploying SP3 for XP via WSUS 2.0
Can't run eseutil on Exchange 2k3 server
How to delete a word bookmark when the document is launched from an Access form?
For i=0 to UBOUND(RegValueName) Type Mismatch: 'UBOUND'
recovering *Contacts* from an old .OST file???
Exclude all records from a join which have two specific values in one table
Visual Studio 2008 Pro Trial does work with SQL 2008 CTP Trial
Feed query results from one form to another
Default Message Required Field