+ Reply to Thread
Results 1 to 3 of 3

Copy selected data from two worksheets and paste it in one worksheet of same workbook

  1. #1
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Copy selected data from two worksheets and paste it in one worksheet of same workbook

    Dear Experts,

    I need some help in writing a code to do the following steps in a worksheet change event on my sheet 1
    Sheet 1 is input and summary sheet, Sheet2 is (Data set 1) & Sheet 3 is Data set 2 Starting from Sheet 1, Cell B1 has a dropdown list upon selecting an item name value in Cell C1 (Value from a match formula) and D1 (Value from a count if formula) changes. Currently its showing C1 = 312 & D1 =28

    What I want from my worksheet function is:

    1.Clear the contents of cell a7:m74

    2.Go to row 312(number comes from cell C1) on Sheet2 and then copy 13 columns(Fixed) and copy 28 Rows (Number comes from cell D1) and paste it in Cell A7 onwards

    3.Above step will also populate cell F1 with minimum value of column K and maximum value of column L

    4.Then it should go to sheet 3 Column A and find all the values between Min (From Cell F1) and maximum (From Cell G1) and copy and paste all 13 columns starting from column P7
    P.S. Data(Numbers) in column A sheet three is sorted in ascending order.

    Best Regards/VKS

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy selected data from two worksheets and paste it in one worksheet of same workbook

    Do you have a sample that you can upload?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Copy selected data from two worksheets and paste it in one worksheet of same workbook

    Hello Arlu,
    Please see if attached sample data file helps in understanding.
    Best Regards/VKS
    Attached Files Attached Files

+ 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