+ Reply to Thread
Results 1 to 15 of 15

Command button to navigate between excel sheets

Hybrid View

  1. #1
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Command button to navigate between excel sheets

    Hello Marieme,

    According to your sample Workbook your Code should actually read:

    Private Sub CommandButton1_Click()
    ThisWorkbook.Sheets("Sheet4").Select
    End Sub
    Otherwise you could refer to the Actual Sheet as follow;

    Private Sub CommandButton1_Click()
    ThisWorkbook.Sheet1.Select ' which is named Sheet4
    End Sub
    Hope that helps.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  2. #2
    Registered User
    Join Date
    11-24-2014
    Location
    Dakar
    MS-Off Ver
    2010
    Posts
    21

    Re: Command button to navigate between excel sheets

    Hi Winon,
    Thank you for your suggestion. Tried that but it's not opening the sheet I am interested in which is the one that have the data.

  3. #3
    Registered User
    Join Date
    11-24-2014
    Location
    Dakar
    MS-Off Ver
    2010
    Posts
    21

    Re: Command button to navigate between excel sheets

    It's finally sorted!!! I retried the 2nd option Winon suggested and somehow it worked (must've made a mistake in the command the first time).
    Thank you very much you all

+ 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. Command Button to Print Grouped Sheets
    By KEMelton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-30-2012, 01:21 PM
  2. Unhide Excel Sheets Using Command Button
    By David Brown in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2010, 10:06 AM
  3. Excel Button to navigate?
    By MasterCoder84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2007, 03:29 PM
  4. Navigate command buttons
    By tqm1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2007, 10:52 AM
  5. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 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