+ Reply to Thread
Results 1 to 2 of 2

Macro - Copy and Insert Copied cell

  1. #1
    Forum Contributor
    Join Date
    07-22-2008
    Location
    canada
    Posts
    123

    Macro - Copy and Insert Copied cell

    I would like to ask help on how to create a macro to copy and insert copied cell. This is the scenario.
    1. A2:A200 contains values that has duplicate.
    2. Macro should copy the header (a1:e1) and insert it in between the two unduplicate value
    example:
    a1:e1 = headers
    a2:a24 = xxxx
    a25:a35 = yyyy
    a36:a45 = nnnn

    macro should insert the header in between a24 and a25...and so on...

    Please help. I hope i have explained it clealy. Thank you for your time.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Macro - Copy and Insert Copied cell

    Maybe this will help. I've assumed that the bottom row won't always be 200 and is dynamically determined in the code.

    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)

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