Results 1 to 8 of 8

Macro: copy a range of cells for a list of material

Threaded View

Geo45 Macro: copy a range of cells... 01-12-2016, 01:17 PM
Leith Ross Re: Macro: copy a range of... 01-12-2016, 05:11 PM
Geo45 Re: Macro: copy a range of... 01-13-2016, 05:18 AM
Geo45 Re: Macro: copy a range of... 01-13-2016, 08:23 AM
JOHN H. DAVIS Re: Macro: copy a range of... 01-13-2016, 09:08 AM
Leith Ross Re: Macro: copy a range of... 01-13-2016, 02:35 PM
Geo45 Re: Macro: copy a range of... 01-14-2016, 01:42 PM
Leith Ross Re: Macro: copy a range of... 01-14-2016, 02:18 PM
  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Brussels
    MS-Off Ver
    2007
    Posts
    4

    Macro: copy a range of cells for a list of material

    Hello,

    This website helped me a lot since I started learning vba (so thanks a lot), but I couldn't find a solution for the problem I'm facing.

    I want to write a macro that will replicate/copy a range of text (line by line) for each material listed in the column A.

    Each material in the column A has to have the same text, which is not in one cell, but line by line.
    The aim is to "copy" this text for each material in such a way that the material is specified next to each line of the text.

    An example is better to understand:

    Material Text
    Material 1 Text A
    Material 2 Text B
    Material 3 Text C
    Material 4
    Material 5



    There are 5 materials in column A and the text consists in 3 lines and is filled in the column B.



    The expected result is in column C and D: the text should be the same for each material, and the material next to each line of the text.

    Material Text
    Material 1 Text A
    Material 1 Text B
    Material 1 Text C
    Material 2 Text A
    Material 2 Text B
    Material 2 Text C
    Material 3 Text A
    Material 3 Text B
    Material 3 Text C
    Material 4 Text A
    Material 4 Text B
    Material 4 Text C
    Material 5 Text A
    Material 5 Text B
    Material 5 Text C





    Thanks in advance for your help!
    Last edited by Geo45; 01-12-2016 at 01:30 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy/paste range of cells to first empty row of active list in another worksheet
    By wildecat666 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-06-2013, 03:45 PM
  2. [SOLVED] macro to copy select range of material and paste in another wksht
    By teton88 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-03-2013, 12:58 PM
  3. Replies: 2
    Last Post: 11-27-2012, 09:12 AM
  4. Material cut-off list
    By igggy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2012, 01:56 PM
  5. Change range of cells within VBA macro and copy and paste to fixed cell range
    By Mannyny in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2012, 11:51 AM
  6. Copy range of cells every 5 minutes, put in a list and with timestamps
    By Test123Test in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2012, 07:54 AM
  7. Macro to copy cells on a list
    By tsioumiou in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2011, 06:30 AM
  8. making one material list from mulitple vendor material lists
    By In the beginning in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2005, 11:08 PM

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