+ Reply to Thread
Results 1 to 2 of 2

Macro to return data

  1. #1
    Forum Contributor
    Join Date
    02-13-2022
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    110

    Macro to return data

    Hello helpers,

    Thanks in advance for your help.

    I have two tables (table 1 and table 2). Based on a drop down list, I want a macro that would copy and paste table 1 into table 4 and table 2 into table 5 at one go. Table 4 depends on the itemcode in cell Q2 while table 5 depends on groupcode in cell Q3 which depends on cell Q2.
    Last edited by ramo114; 03-04-2022 at 02:17 PM.

  2. #2
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Macro to return data

    Hello ramo,

    I think the help I provided you with the other day should suffice as guidance. You should be able to create what you need from that.

    Specifically "based on a dropdown list" just mean in VBA the worksheet_change event, same as we used in that other example. Adjust the Target.column and Target.row to cover the dropdown and apply the same type of code I have given you..

    You can easily have to different checks in a Worksheet_Change event, like so:

    Please Login or Register  to view this content.

+ 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. Macro to return data from website/take a screenshot
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2017, 04:01 AM
  2. [SOLVED] Match multiple data & Return value Macro
    By christian2016 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-10-2016, 07:53 PM
  3. LookUp/Return Data Macro
    By mrr2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2013, 01:58 PM
  4. [SOLVED] Running Macro/Vba twice to return all data
    By zhb12810 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2012, 08:58 PM
  5. how to return data between worksheet and workbook using macro
    By cboys00 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-16-2012, 01:37 AM
  6. looping a macro to return data from binomial
    By pond in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-08-2010, 05:32 PM
  7. Macro to return data into a comment
    By Aaron W in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2008, 06:54 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