+ Reply to Thread
Results 1 to 2 of 2

Scenario Drop Down Issue

Hybrid View

  1. #1
    Registered User
    Join Date
    12-09-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2011 Mac
    Posts
    1

    Scenario Drop Down Issue

    I am trying to make a drop down that will change the scenario manager to show 3 different cases.
    The VBA code works when I run it manually, but it won't run when I change the drop down choice.
    What am I doing wrong?

    Here is the code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$G$3" Then
    Private Sub ChangeScenario()
    If Range("G3") = 1 Then
    ActiveSheet.Scenarios("Base Case").Show
    ElseIf Range("G3") = 2 Then
    ActiveSheet.Scenarios("Median Case").Show
    ElseIf Range("G3") = 3 Then
    ActiveSheet.Scenarios("Reach Case").Show
    End If
    End Sub
    End If
    End Sub
    Thanks!!
    Last edited by alansidman; 12-09-2013 at 12:43 AM. Reason: Code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,913

    Re: Scenario Drop Down Issue

    Rule 03: Code Tags
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (I have added them for you today. Please read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Scenario Manager displays same result for every scenario
    By terihoff in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 11-10-2012, 07:14 PM
  2. Creating a manual drop down for scenario analysis
    By tedwilliams131333 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2012, 05:33 PM
  3. Displaying Scenario Using Drop Down List
    By rickytj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2012, 02:55 AM
  4. Issue with drop down list
    By hcksharp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2011, 12:57 PM
  5. [SOLVED] [SOLVED] How do you I link a drop down box with a scenario macro?
    By geoff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2006, 08:10 PM

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