+ Reply to Thread
Results 1 to 7 of 7

Macro Combobox for WS and selection takes you to sheet

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Macro Combobox for WS and selection takes you to sheet

    I am looking for a macro to populate a combobox with the WS name of all worksheets in the workbook except "Sheet1, Sheet2, Sheet3". Then when the user selects the choice from the combobox it takes them to that worksheet.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Macro Combobox for WS and selection takes you to sheet

    Why not just right click on arrows in lower left corner and choose sheet you like?
    Untitled.png

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Macro Combobox for WS and selection takes you to sheet

    But here, try this with userform:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Macro Combobox for WS and selection takes you to sheet

    zbor,

    Thanks for the reply. I forgot to mention this is not a userform combobox. How I have it initating is through a "Shape" "Click" Command and then a ComboBox1 on a Worksheet. The following is the adjusted code I have applied:
    Shape Code:
    Please Login or Register  to view this content.
    ComboBox on WS Code:

    Please Login or Register  to view this content.
    I have run into a problem though the combobox for some reason has populated multiple results of the same WS. I as well would like the combobox to reset after a selection has been made so that the user has to hit the "Shape Click" again to activate it. Attached is the workbook if you look at the first 3 Worksheets they have the same dashboard. The Shape "Go To Audit" initiates the combobox. Could you happen to take a look and point me in the right direction.

    (PSM-14-02) PSAudit.xlsm
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Macro Combobox for WS and selection takes you to sheet

    See the first attachment. (i.e. not the 153.8 KB attachment for some reason this loaded too and I cant get it off)

  6. #6
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Macro Combobox for WS and selection takes you to sheet

    Quote Originally Posted by zbor View Post
    But here, try this with userform:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    zbor,

    I forgot to quote the last comment you made and was wondering if you happened to see my last post?

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Macro Combobox for WS and selection takes you to sheet

    You already have 10 userforms. One more or less won't hurt And you can put that clicking on the shape you run userform.

  8. #8
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Macro Combobox for WS and selection takes you to sheet

    I have the comboboxs already designed into my dashboard though lol

+ 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. Add information to specific Sheet based on ComboBox selection
    By paralegal91 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2014, 04:09 AM
  2. [SOLVED] fill combobox selection based on a selection from the first combobox
    By Monza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2013, 07:34 PM
  3. Replies: 0
    Last Post: 05-22-2013, 05:57 AM
  4. userform combobox fills from selection on sheet
    By mdshotgun in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-28-2011, 05:45 AM
  5. Macro to move a row from sheet 1 to 2 takes two rows.
    By Relentim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2009, 05:52 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