+ Reply to Thread
Results 1 to 3 of 3

Button to find last record

Hybrid View

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    South Africa
    Posts
    37

    Button to find last record

    Hi all

    I have a spreadsheet with lots of data in columns and rows. I need to create a button that when users click, it will take them to the last record on the sheet. Is this possible?

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    put a command button on sheet from the control tool box
    (if you cant see it right click tool bar and check control tool box option)
    right click it
    view code
    put this in

    Private Sub CommandButton1_Click()
    'LastCellInColumn
    
    Range("A65536").End(xlUp).Select
    
    End Sub
    click file and exit to excel
    rigt click button again
    click comand button object
    edit name of button
    then on control tool box tool bar click the triangle thingy on the left side to exit design mode
    now cllicking button will go to last used row in col A

  3. #3
    Registered User
    Join Date
    08-21-2008
    Location
    South Africa
    Posts
    37

    Talking Thank you

    The coding works perfectly. Thank you very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Collect User Input Using VBA Form and Record Inputs in Macro Button
    By DD100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2008, 03:29 PM
  2. Find record
    By das15hild in forum Excel General
    Replies: 2
    Last Post: 04-25-2008, 10:56 AM
  3. match 3 hold digits
    By stewart08 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-13-2008, 03:30 PM
  4. User Form: Button Return Order
    By SamuelT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2007, 10:33 AM
  5. Record a macro, activate by button
    By jimmisavage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2007, 11:13 AM

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