next blank row

Joseph McGowan

New Member
Joined
Mar 24, 2002
Messages
11
If I have a macro button on a sheet and when this is clicked I would like column B of the next blank row selected for user input and in column A I would like the Date to appear.

What code do I use for this to happen.

I am trying something like
intLastRow = Sheets("New Joins").Cells(65000, 1).End(xlUp).Row
New Joins is the name of the worksheet.
It is not selecting the correct cell.

Can anyone help me please.

I have not worked out how to do the date part.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try this:

intLastRow = Sheets("New Joins").Range("A65536").End(xlUp).Row
Cells(intLastRow+1),1).Formula = "=TODAY()"
Cells(intLastRow+1),2).Select
 
Upvote 0

Forum statistics

Threads
1,213,528
Messages
6,114,154
Members
448,553
Latest member
slaytonpa

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