+ Reply to Thread
Results 1 to 4 of 4

Copy a Range multiple times

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Central, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    49

    Copy a Range multiple times

    Hi all,
    I have a large set of data which is present from A1:BZ199.
    I want to copy this array into the row below - arr(1) would therefore be A201:BZ399 etc etc.

    In cells A1,A201,A401 etc. I need values taken from A1, A2, A3 in 'sheet2" to be placed in them.

    - I can sort of do the first bit, but my code is long and unecessary, you guys probably know a better way of doing it.

    Thanks in advance guys,
    Alex.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Copy a Range multiple times

    So do you want to repeat this the number of times that there is an entry on Sheet2?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Copy a Range multiple times

    maybe you can use this code

    x means times to copy

    Please Login or Register  to view this content.
    Last edited by tom1977; 11-16-2011 at 05:15 AM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  4. #4
    Registered User
    Join Date
    11-09-2011
    Location
    Central, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Copy a Range multiple times

    Hi guys, sorry for the late reply,

    Tom's code is what I wanted to achieve although the part I wasn't sure how to do was the additional part. If I perform tom's code the cell at the top of each range I want to contain the title of the dataset. These titles are on another spreadsheet labelled "sheet2".

    The reason I can't input it manually is because these titles on sheet two are set up so that the whole dataset will change when the title changes. So for example, A4 on "sheet1" is to be replaced with the value in A8 on "sheeet2", cell A204 on "sheet1" with cell A9 on "sheet2" etc etc.

    Does this make sense?

    Thanks for the help guys,
    alex.

+ 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