+ Reply to Thread
Results 1 to 4 of 4

Macro to copy & paste from sheet 2 to 3 based on a checkbox selection in sheet 1

  1. #1
    Registered User
    Join Date
    11-09-2010
    Location
    Düsseldorf, Germany
    MS-Off Ver
    Excel 2003
    Posts
    3

    Macro to copy & paste from sheet 2 to 3 based on a checkbox selection in sheet 1

    Hi,

    I am new here and also to writing macros. I have the following problem. I have been tasked to write a macro that takes information from a legend, looks the data up in a database and then populates the information selected on a result sheet.

    My workbook is build up as described below:

    I have a legend on sheet 1 (total of 9 different selection options - A2:I2). On sheet 2, I have a database where each of the different selection options mentioned above are listed in the columns O:W in the rows 4 to 75 respectively. My goal is to create check boxes below each of the 9 selection options on sheet 1 (i.e. one check box for A2; one check box for B2; etc.) and based on the selection made the respective data to be pulled from the database (sheet 2)and populated on sheet 3 in column B.

    Could anybody help me out? I have read multiple threads but haven't found one that really answers my questions.

    Thanks in advance!
    Greetings,
    PG
    Last edited by USAISC; 11-10-2010 at 05:25 PM.

  2. #2
    Registered User
    Join Date
    11-09-2010
    Location
    Düsseldorf, Germany
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro to copy & paste from sheet 2 to 3 based on a checkbox selection in sheet 1

    Hi Dave!

    Thanks for your quick reply. I have attached a file below that describes my needs based on your suggestions. Clearly, this data does not resemble my data... I basically made this up since the data I have to create the macro for is confidential. Any help would be greatly appreciated!

    Thank you!
    Greetings,
    PG
    Attached Files Attached Files

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Macro to copy & paste from sheet 2 to 3 based on a checkbox selection in sheet 1

    Check this out
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-09-2010
    Location
    Düsseldorf, Germany
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro to copy & paste from sheet 2 to 3 based on a checkbox selection in sheet 1

    Dave-

    you are the man! It would have taken me forever to figure that out!

    Greetings,
    Patric

+ 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