nagavasarala
New Member
- Joined
- Jan 6, 2018
- Messages
- 15
Hi,
I need to maintain my daily sales month wise so have created recommended user form but i have total 12 worksheets in one workbook
so i need to create a combobox in userform and need to Add worksheets in combobox to enter and save record to selected sheetname automatically.
can you help me to figure out the coding.
have given the below but the same is not working.
Private Sub UserForm_Initialize()
For Each sht In ActiveWorkbook.Sheets
Me.ComboBox1.AddItem sht.Name
Next sht
End Sub
please help me
I need to maintain my daily sales month wise so have created recommended user form but i have total 12 worksheets in one workbook
so i need to create a combobox in userform and need to Add worksheets in combobox to enter and save record to selected sheetname automatically.
can you help me to figure out the coding.
have given the below but the same is not working.
Private Sub UserForm_Initialize()
For Each sht In ActiveWorkbook.Sheets
Me.ComboBox1.AddItem sht.Name
Next sht
End Sub
please help me