![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 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. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
|
Try this:
intLastRow = Sheets("New Joins").Range("A65536").End(xlUp).Row Cells(intLastRow+1),1).Formula = "=TODAY()" Cells(intLastRow+1),2).Select |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|