+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Assign macro to Drop down

  1. #1
    Registered User
    Join Date
    04-02-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    15

    Assign macro to Drop down

    Hello,

    I want to assign a macro to a dropdown. The dropdown was created with Insert-Form and contains around 30 values .
    The macro should do as follows : when a value is chosen, go to a certain sheet in the same file .

    I created the macro , see below, but it does not work . What am I doing wrong ? I have read posts related to this topic, but, as I am a beginner, I still did not solve it.

    My macro :

    Please Login or Register  to view this content.
    Last edited by volar; 04-04-2012 at 08:16 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Assign macro to Drop down

    Hi

    What values do u have in the combobox?
    Upload ur sample file....

  3. #3
    Registered User
    Join Date
    04-02-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Assign macro to Drop down

    A list of texts in the same sheet chosen with Format Control->Control-> input range .

  4. #4
    Registered User
    Join Date
    04-02-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Assign macro to Drop down

    Please help ! Can you give me some advices ?

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

    Re: Assign macro to Drop down

    Your post does not comply with Rule 3 of our Forum [/I]RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Click Edit to see how I've done it.

    The Dropdown will have a linked cell property if you right click it, set it to say A1
    Please Login or Register  to view this content.
    Last edited by royUK; 04-04-2012 at 08:16 AM.
    Hope that helps.

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

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    04-02-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Assign macro to Drop down

    My mistake !
    Thanks for your help !

  7. #7
    Registered User
    Join Date
    04-02-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Assign macro to Drop down

    Hello ,

    I come back with the same problem.
    I have tryed the method above, but I still get an error related to the selection of the sheets.
    Thank you in advance !
    Last edited by volar; 04-10-2012 at 04:42 AM.

  8. #8
    Registered User
    Join Date
    04-02-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Assign macro to Drop down

    I've done it ! )

    Thank you so much, royUK !

+ 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