+ Reply to Thread
Results 1 to 11 of 11

Macro for drop down list options with different increases

  1. #1
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Macro for drop down list options with different increases

    I have a master sheet in which I input my data (A7:D). In cell C2 I want to have a dropdown list with few options (A, B, C, No changes).

    When I choose particular option (eg. A) macro should select the range of input data (A7:D) and multiply columns C7:C and D7:D with correspondent increase. Let's say if I choose option A it should increase column C by 10% and column D by 7%. If I choose option C it should increase/multiply column C by 12% and column D with 0% increase...And so on different criteria for each option.

    There should also be an option in drop down list which would mean "No changes", because I have another macro that copies existing data on second sheet and the master sheet has to be "clean" for next inputs.

    Thank you for suggestions!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro for drop down list options with different increases

    Hello, some what understood .. but not quiet clear ... can you explain more in figure , what output should look like in excel....

    like what 10% increase you want, the value / width of column ?


    regards

  3. #3
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Macro for drop down list options with different increases

    I want 10% increase in value, so values in column C7:C multiplied by 1.1, etc...

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro for drop down list options with different increases

    Hi Look at the attached , hope this is your requirement ....
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Macro for drop down list options with different increases

    Hi,

    what is the logic behind?

    I have to have the "no changes" option which returns values on the "starting ones" (without any changes in increase).

    Thanks

  6. #6
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro for drop down list options with different increases

    you mean, it should go back to the starting values if you select No changes ??

  7. #7
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Macro for drop down list options with different increases

    Yes, exactly!

    How does it work?

  8. #8
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro for drop down list options with different increases

    Check now...
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Macro for drop down list options with different increases

    Thank you, works on example!

    I would appreciate the logic behind so I can apply it on my documents and adjust the criteria.

  10. #10
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro for drop down list options with different increases

    Press Alt F11 , then select Sheet1 code, and also This workbook code.. you will know the logic....

    Basically an Array will store the intial values which is declared public.. then when ever you select No changes, it will post the same values in that...
    So Note it. again,,, What ever your values displayed initially when you open workbook, that will be the values which will be stored in array.....

  11. #11
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro for drop down list options with different increases

    Press Alt F11 , then select Sheet1 code, and also This workbook code.. you will know the logic....

    Basically an Array will store the initial values which is declared public.. then when ever you select No changes, it will post the same values in that...
    So Note it. again,,, What ever your values displayed initially when you open workbook, that will be the values which will be stored in array.....

+ 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. drop down list with options
    By kayye in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 12:06 PM
  2. [SOLVED] Column B drop down list with 2 options, columns C & E with dependent drop down lists
    By betic in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2012, 03:47 PM
  3. Drop down list options
    By James83 in forum Excel General
    Replies: 10
    Last Post: 04-23-2011, 07:13 PM
  4. Take away options in drop-down list
    By phiberjenz in forum Excel General
    Replies: 0
    Last Post: 04-16-2009, 04:44 AM
  5. [SOLVED] My Excel drop-down list eliminates from list options chosen. Help
    By Sybil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2006, 05:25 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