Consulting

Results 1 to 4 of 4

Thread: Finding Last Empty Cell

  1. #1

    Finding Last Empty Cell

    Here is my problem:

    I have data that updates every couple of days and I have designed a macro to take care of the data, but i need to log it in a worksheet. The worksheet gets filled out everytime this report is done. I need to find the first empty row in the log so that the new information can be placed there. And so on for the next time.

    The cells that I need this to look in are B74:B550. From there if the first empty cell is found i can fill out the rest of the row.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    With Workbooks("Log.xls").Worksheets(1)
    Set NextFreeCell = .Range("A1").End(xlDown)
    End With
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    you always make is so simple. Thanks again for saving the day!

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It would help if I got it right

    [vba]

    With Workbooks("Log.xls").Worksheets(1)
    Set NextFreeCell = .Range("A1").End(xlDown).Offset(1,0)
    End With
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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