+ Reply to Thread
Results 1 to 2 of 2

How to create navigation buttons

  1. #1
    Registered User
    Join Date
    02-21-2007
    Posts
    5

    How to create navigation buttons

    Hello,

    I'd like to create 'buttons' to navigate around my spreadsheet. I can create a button, but have no idea what code to put in it such that when I click on the button I am taken to a designated worksheet.

    Thanks in advance for your help. Really appreciate it.

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    Place your buttons right click one and assign one of these macros for example:
    Sub Macro1()
    ActiveCell.SpecialCells(xlLastCell).Select
    End Sub
    Sub Macro2()
    ActiveCell.SpecialCells(xlCellTypeLastCell).Select
    End Sub
    Sub Macro3()
    x = ActiveCell.Column
    r = ActiveSheet.UsedRange.Rows.Count
    Cells(r, x).Select
    End Sub
    Sub Macro4()
    x = ActiveCell.Row
    c = ActiveSheet.UsedRange.Columns.Count
    Cells(x, c).Select
    End Sub
    Best regards,

    Ray

+ 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