+ Reply to Thread
Results 1 to 4 of 4

Using same combobox with macros across multiple sheets

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    2

    Angry Using same combobox with macros across multiple sheets

    I have been trying to get a combobox that has 5 items and each with a macro that will redirect to another tab to work across each of the sheets across the workbook. I originally followed the advice of this threat http://www.excelforum.com/excel-programming/654789-how-to-activate-a-macro-from-combo-box-list-box.html but after getting the first sheet's to work I tried to keep the same setup making sure that each combobox had the needed code.

    I keep getting pointed to the Application.Run line of
    Please Login or Register  to view this content.
    Is there something wrong with the location of my macros being in the wrong place? ie the wrong module or throughout the entire workbook? Any help is appreciated

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using same combobox with macros across multiple sheets

    I don't think you can use Application.Run like that. What's it supposed to do?

    Attach an example workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-28-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Using same combobox with macros across multiple sheets

    I used the workbook example from the link i posted in OP. This modified version works however my actual workbook isnt liking this...
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using same combobox with macros across multiple sheets

    You aren't using the same type of ComboBox - yours are Form controls, the suggestion in the other post was to use the Controls Toolbox ComboBox.

    The code offered in the other post doesn't use ListIndex,

    Basically yours is nothing like the other post & can't work

    Basically use the ActiveX ComboBox from the Controls ToolBox, populate it with the ListFillRange then use this for each ComboBox

    Please Login or Register  to view this content.

+ 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