+ Reply to Thread
Results 1 to 2 of 2

I'd like a "If a certain cell matches this number, go to Sheet 2"

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    America
    MS-Off Ver
    Excel 2007
    Posts
    27

    I'd like a "If a certain cell matches this number, go to Sheet 2"

    Just like the title says, let's just go a little more detailed.
    If A1 ever equals "1", I want Sheet 2 to automatically be displayed.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,921

    Re: I'd like a "If a certain cell matches this number, go to Sheet 2"

    Macro required. You would put this code in whatever sheet it is that has the A1 you are talking about.

    Private Sub Worksheet_Change(ByVal Target As Range)
    
       If [A1] = 1 Then
          Sheet2.Activate
       End If
    
    End Sub
    This assumes that there is some value on the same sheet that will cause A1 to become 1. If A1 has a formula that refers only to other sheets, then this won't work.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Replies: 7
    Last Post: 04-11-2013, 12:46 AM
  2. [SOLVED] Highlight or place "X" when cell matches any other cell within the entire workbook.
    By Mr.Atlantis in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-28-2013, 12:34 PM
  3. If cell X matches a value in a cell range, return "specific text" - HELP :(
    By paulandrewlee in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-02-2013, 07:06 PM
  4. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  5. loop through sheet if sheetname matches "E***"
    By jazzaman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2010, 04:42 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