+ Reply to Thread
Results 1 to 5 of 5

VBA code to change value in a drop down

  1. #1
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    VBA code to change value in a drop down

    I have 4 sheets, each with a table of values. Each table has a drop down box which causes the values in the tables to change.

    On a separate sheet i need the total of the these 4 tables of values but when the drop down lists show a specific value.

    I thought of maybe recording a macro or using some VBA code to do this, but when i start recording and then change the value in the drop down box, the macro doesn't seem to have recorded anything.

    Any suggestions on the best way to do this?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you attach a zipped 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
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148
    I have attached an example file.

    The detail tab contains the data. The summary tab displays it.
    On the summary tab you can see that there is a drop down box that let's you choose quarter. This then displays the relevant data in the table.

    My file has 4 of these summary and detail sheets, one for each department.

    Say i need a total for solid for 4Q2007. I can't just do a sum calculation of cell C10 in all my summary sheets because the drop down in one of the sheets may be on 1Q2008.

    My first idea was to create a macro that set each drop down to Q4, but i wa snot successful.

    Any ideas?
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148
    Anyone got any ideas?

  5. #5
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148
    Anyone got maybe just the code in VBA to change the value of a drop down?

+ 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