To put value from txtbox to cell?

  • Thread starter Thread starter Samick
  • Start date Start date
S

Samick

Hello,

please, I need in Excel put value to textbox and while I click Comman
button, it will fill in a cell. Next run should fill in cell one lin
down. (first A1, second A2, third A3......). Please, can you write
source code for it?

Thank you very muc
 
With Worksheet("Sheet1")
cLastRow = .Cells(Rows.Count,"A").End(xlUp).Row
.Range("A" & cLastRow+1).Value = Me.Textbox1.Text
End With


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top