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
How to identify corrupt Excel-Objects?
Disk Quotas
Corupt Registry on 2000 adv server
Edit (OLE) Links in a PowerPoint presentation
Convert 3.0 Resource file to 6.0 format?
Using Radio buttons across multiple columns in GridView
Variable height details section in access report
How to pin shortcut to Start menu using command line or script
Exchange 2007 cannot receive external email
Windows Server 2003 Shares - document permissions