#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default New

Hi
I a form in this form i have a text field in this field i can write a name
this name shall in a sheet, no problem with that, but if there in the sheet
all ready are value in A1 and A2 then my new value from my form shall in
cell A3 and son on , so again the next value come into A4

CAn some one help?

Regards
Alvin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default New

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
With worksheets("Sheet1")
set cell = .Cells(rows.count,1).End(xlup)
End with
if not isempty(cell) then set cell = cell(2)
cell.Value = Textbox1.Text
End Sub

This assumes a textbox from the control toolbox toolbar on a userform

It would help if you would specify your specific situation - where the
control came from, where the control is located. Then you could get a
specific answer. this is just a guess.

Also, do not assign the textbox to a cell using the ControlSource property.

--
Regards,
Tom Ogilvy


"Alvin Hansen" wrote in message
...
Hi
I a form in this form i have a text field in this field i can write a name
this name shall in a sheet, no problem with that, but if there in the

sheet
all ready are value in A1 and A2 then my new value from my form shall in
cell A3 and son on , so again the next value come into A4

CAn some one help?

Regards
Alvin



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"