View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default adding content to a cell

Range("C7").value=txtName.Value


"cedtech23" wrote:


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

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


--
cedtech23
------------------------------------------------------------------------
cedtech23's Profile: http://www.excelforum.com/member.php...o&userid=31022
View this thread: http://www.excelforum.com/showthread...hreadid=506903