+ Reply to Thread
Results 1 to 2 of 2

Macro to Copy Values from another Sheet and insert certain # of rows if condition is meet

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Thiland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Macro to Copy Values from another Sheet and insert certain # of rows if condition is meet

    Hi I just want to know if it is possible to have macro for my excel file. Please see attached "Data.xlsx" for my excel data sample. And please see attached image "Output.jpg". The value in Column D of Sheet2 will be the basis for how many rows will be inserted on the last Name of the same items on Sheet1 and copy values from Column B and C of Sheet2 for the corresponding Code. Thanks you in advance if someone can give me advice on this.

    Output.jpg
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Macro to Copy Values from another Sheet and insert certain # of rows if condition is m

    Hey!! Try this.

    But I gotta be honest. I am not convinced with my own code because i think its error prone.

    It will not work correctly If the count of that Particular item in sheet 1, does not match with Number of Area Under the Code in Sheet2.

    You could use some help from the gurus.

    However you can still give it a try.

    Thank You,

    Deep
    Attached Files Attached Files
    Last edited by NeedForExcel; 05-11-2013 at 03:14 AM.
    Cheers!
    Deep Dave

+ 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