+ Reply to Thread
Results 1 to 3 of 3

Macro/Code to duplicate a range of formatted cells based on data

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Macro/Code to duplicate a range of formatted cells based on data

    Hi,

    I need help to figure out the following:

    In the attached example, first tab contains a range of formatted cells which I need to fill with the data from the second tab.

    It will be perfect when adding a row of data in sheet 2 a new box with the formatted cells gets populated down in sheet 1.

    My sample shows 2 lines of rows already populated but not the 3rd. I would like to avoid copy and paste the formatted cells as I don't know how many rows of data sheet 2 will contain.

    Is it possible to do that, if yes could you please help me?

    Thanks very much!
    Attached Files Attached Files

  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: Macro/Code to duplicate a range of formatted cells based on data

    If i understand you correctly, you want one section to be created (from scratch) in Sheet1 which gets populated from Sheet2?

    Do we have to do the color formatting in sheet1 too? Or can the section A4:P15 in sheet1 just be duplicated for each row in sheet2?
    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
    Registered User
    Join Date
    08-23-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Macro/Code to duplicate a range of formatted cells based on data

    you understood correctly.
    yes, the whole section A4:P15 including colors should be duplicated for each row in sheet 2.
    Thanks for asking!

+ 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