+ Reply to Thread
Results 1 to 2 of 2

macro vba to select an option from a drop down list

  1. #1
    Registered User
    Join Date
    06-09-2022
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    2

    Question macro vba to select an option from a drop down list

    Greetings ,

    I have a task which I am unfamiliar with.

    First of all I have 2 workbooks open
    lets say the workbook names are Workbook 1 and workbook 2
    .
    And the macro should consist of the following:

    1- to select a value from a drop down list in workbook 1 which also consists of 2 options in cell B2 (Hybrid: PV+BESS) and (Hybrid: BESS only)
    2- if the option (Hybrid: PV+BESS) is chosen then also set the dropdown list in another workbook 2 to the same value which is in cell D71 and if the option in workbook1 is chosen to be (Hybrid: BESS only) then set the dropdown list in workbook 2 to the same value chosen.

    3- after selection there are values from Cell C4 to G4 in workbook 1 that should be copied using macro to workbook 2 in certain cells ,and after each cell copied (example: cell c4 from workook1 is copied to cell B11 in workbook2 then the macro should activate another ready macro from workbook 2 which is already a functional macro ... then some values should be copied back into certain cells) this is how the macro should work.

    What I am trying to clarify is that there should be a loop from cell c4 to G4 but within the loop there also should be other commands.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,410

    Re: macro vba to select an option from a drop down list

    a workbook is worth a thousand words - see big yellow banner - how to upload
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

+ 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. 'Select all' option in a drop down list
    By james19 in forum Excel General
    Replies: 3
    Last Post: 03-12-2016, 11:14 AM
  2. Save Excel Sheet as PDF for every drop down list option using a Macro
    By mp_15 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2015, 03:21 AM
  3. [SOLVED] How do I date stamp different fields each time I select an option from a drop down list?
    By martyparke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2014, 05:47 AM
  4. Select option in HTML drop down list
    By JohnsonJiang in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-15-2014, 03:28 PM
  5. Replies: 4
    Last Post: 02-07-2014, 12:49 AM
  6. Select active X option button and drop down in a another excel file using macro
    By vishal_dhami in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2012, 07:20 AM
  7. How to choose a select-list option using VBA macro ?
    By tmp2100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2006, 01:55 PM

Tags for this Thread

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