Find empty row and place value there

errtu

Board Regular
Joined
Sep 23, 2010
Messages
134
column A and B will have information, I want the macro to find the first empty row and place "Customer" in column C

Example one:

A-------------B------------ C
100-------- Mr X ---------Customer <=====text placed by macro


Example two:

A---------B------------C
100----- Mr X------ Customer
345----- Mr Y------- Customer<=====text placed by second activation
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try like this

Code:
Range("C" & Rows.Count).End(xlUp).Offset(1).Value = x
 
Upvote 0
Try

Code:
Sub DelABC()
Dim LR As Long, i As Long
LR = Columns("A:C").Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
Rows(LR).Delete
End Sub
 
Upvote 0
Im trying :

Code:
Sheets("DDE").Range("E" & Rows.Count).End(x1Up).Offset(1).Value = Sheets("User").Range("b3").cellValue

it aint working
 
Upvote 0
Try

Rich (BB code):
Sheets("DDE").Range("E" & Rows.Count).End(xlUp).Offset(1).Value = Sheets("User").Range("B3").Value
 
Upvote 0
I get run-time error 1004
application defined or object defined error.

i am using:

Code:
Private Sub Al_Click()
Sheets("DDE").Range("C" & Rows.Count).End(xlUp).Offset(1).Value = "Al"
Sheets("DDE").Range("D" & Rows.Count).End(x1Up).Offset(1).Value = Sheets("User").Range("b3").Value
End Sub

ok i fixed it, i dont know what that is. is it an L or a number 1?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,284
Members
452,902
Latest member
Knuddeluff

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