Next Empty Row

seasmith

New Member
Joined
Jul 6, 2011
Messages
44
I have used code like this

Range("A65536").End(xlUp)(2, 1) = txtrelief.Text

before to find the next empty row and have a text box from a form print to that row. This time though I am having some problems. Whatever I type in the text box on the form lets say I type in JimJones it enters the informating
J
Ji
Jim
JimJ
JimJo and so on
can anyone help me with this? Or is there any other code I could use to find the next empty row and have a text box from a form print in it?
 
Weird, the only time I couldn't get what you describe was when the next row was based on a different column than the one the text was gong to.:eek:
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Also I only had to change the code for the first text box on the form none of the rest.

this is the code i used

Range("A" & Rows.Count).End(xlUp).Offset(1).Value = txtrelief.Text
Range("A65536").End(xlUp)(1, 2) = txtlocation.Text

all of the code is the same as I had it except for the first one
 
Upvote 0

Forum statistics

Threads
1,216,269
Messages
6,129,813
Members
449,538
Latest member
cookie2956

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