how can i submit data of my user form to an another excel sheet(User Details(Sheet1)

tiger123

New Member
Joined
Jun 24, 2014
Messages
37
i have created an userform

in userform i have Employee Name -- lbl2
current date ----lbl4
current time ----lbl6
project name----txt2
user comment---txt3

and a submit button

how can i submit the details to an particular excel sheet

Code:
Private Sub cmdbt1_Click()MsgBox "welcome to bms"
End Sub

Please help me out
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try like this

Code:
Private Sub cmdbt1_Click()
MsgBox "welcome to bms"
Sheets("Sheet1").Range("A1").Value = lbl2.Caption
' and so on
End Sub
 
Upvote 0
I'm surprised your using a listbox for current date and time. I would think you would use a text box. A listbox is used when you have a list of items to choose from.
 
Upvote 0

Forum statistics

Threads
1,207,090
Messages
6,076,520
Members
446,211
Latest member
b306750

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top