adding content to a cell

C

cedtech23

I have a text box called txtName on my form that a user input data.
want that data to popluate to a cell C7 in a worksheet called hrfrom
when the user clicks on the command button call cmdOK. I tried th
code below but no luck. Any ideas??

Private Sub cmdOK_Click()
C7.Value = txtName.Value
Unload Me
End Su
 
N

Norman Jones

Hi Cedtech,

Try:

'=============>>
Private Sub cmdOK_Click()
Sheets("hrfromm").Range("C7").Value = txtName.Value
Unload Me
End Sub
'<<=============
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top