+ Reply to Thread
Results 1 to 2 of 2

Open sheet macro with 2 variables

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Open sheet macro with 2 variables

    I have an Index sheet with a dropdown bix that displays a list of other sheets. Using the code below I can access any sheet shown in the dropdown cell but I want to take it one step further. I would like to open the specified sheet to the cell referenced in cell "J11". That reference is through a Vlookup an will change sepending on the data selected in the dropdown.

    Please Login or Register  to view this content.
    My understanding of the code is that when the sheet opens it will open to the range as specified as 'Range("A2").Select'. That being the case I need to have that range become the range as shown on the "Index" sheet,cell J11, from which the code is run. In short I need to have the range "A2" change as the selections change.

    Jim O
    Last edited by JO505; 02-20-2015 at 04:20 PM.

  2. #2
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Open sheet macro with 2 variables

    Figured it out.

    Please Login or Register  to view this content.
    Jim O

+ 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. Macro vba auto email runtime error when having difrent sheet to name range sheet open
    By no1freeman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2015, 01:35 AM
  2. macro to open files and copy specific sheet into new workbook (have open files part)
    By dangerdavedsp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 02:23 PM
  3. Macro open files and copy sheet and rename sheet
    By matrix_xrs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2013, 04:33 AM
  4. [SOLVED] Go to a specific sheet if the sheet to open in the macro is hidden?
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-20-2013, 03:45 PM
  5. macro that finds variables in one column and enters values if variables found
    By xln00b in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2010, 08:22 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