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 do I disable script & execute permission in IIS7 for a specific site subdirectory?
IIS7 and DNS on Server 2008
Microsoft Access form navigation VBA question - making fields active or inactive
Need some help with ComboBox and Column
Tricky DCount for me - maybe not you
Problems with screeen resolution and external monitor on Windows Vista
Oracle - Connect by Prior - Two times in single query
VBA code to customize tab order
Linked table cannot be modified?
HP only has drivers for Vista, downgraded to XP.