+ Reply to Thread
Results 1 to 3 of 3

VBA to select specific Text in Drop Down List

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    VBA to select specific Text in Drop Down List

    Hello. I am trying to figure out the VBA to select specific values in a drop down list already created in my spreadsheet.

    What I am doing overall: I have a drop down list of six cities (in C5) that triggers the re-calculation of cell D18 (which is sales for that particular city). I need a macro that selects the cities one at a time, then copies the sales value for each one in D18, then pastes the values in a different sheet that I named "Datos".

    I recorded a macro manually and got the following VBA, but it does not differentiate when I selected something different in the drop down list. Please help!!

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

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: VBA to select specific Text in Drop Down List

    Come on woolen. You've got enough posts to your name to know the rules.

    Your post does not comply with Rule 3 of our Forum 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

    DominicB

  3. #3
    Registered User
    Join Date
    08-01-2011
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: VBA to select specific Text in Drop Down List

    Sorry about that. It is fixed now.

+ 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