+ Reply to Thread
Results 1 to 2 of 2

displaying last number in a column

  1. #1
    Registered User
    Join Date
    02-06-2005
    Posts
    1

    displaying last number in a column

    I was wondering how to display whatever the last value happens to be in a column into another cell in the sheet. Thanks for any help.

  2. #2
    Forum Contributor
    Join Date
    09-05-2004
    Location
    Melbourne
    Posts
    193
    This code will transfer the last cell in column A (column 1) of Sheet1 to cell A1 on Sheet2.

    Sub LastNumber()

    Sheets("Sheet2").Range("A1").Value = Sheets("Sheet1").Cells(Rows.Count, 1).End(xlUp)

    End Sub

    Hope this can be re-arranged to suit your needs

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1