Power Query Course in Spanish
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: next blank row

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Milwaukee, WI
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try this:

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

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •