+ Reply to Thread
Results 1 to 4 of 4

Copy and Paste Range of Cells based on # of cell values in Column A

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Kitchener, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    39

    Copy and Paste Range of Cells based on # of cell values in Column A

    Hey all,

    Please see attached sample worksheet.
    Column A will be generated by the user manually.

    I'm looking for a way in VBA to have A1:D20 in Sheet2 copied and pasted in the "Bank Reconciliation" Sheet based on how many "Markets" there are in Column A. Then, once that's complete to have A22:D30 (the smaller box in Sheet2) copied and pasted directly below those results.

    I have what the macro would hopefully generate to the right in "Bank Reconciliation" (B6:E54) as an example.
    So if there's a market in A1, copy and paste the box to B6.
    If there's a market in A2, copy and paste the box directly below the first (B26)
    etc. etc. until it's done, then paste the smaller box directly below whatever the macro generates.

    My apologies if this isn't clear...had a very long day...

    Any help would be greatly appreciated.

    Thanks!!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: Copy and Paste Range of Cells based on # of cell values in Column A

    Hi

    Do you mean that if Market is 64 it must paste it 64 times?
    If your Dreams don't scare you......They are not big enough

    If you like my answer don't forget to click on the *

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy and Paste Range of Cells based on # of cell values in Column A

    Try this:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-13-2012
    Location
    Kitchener, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Copy and Paste Range of Cells based on # of cell values in Column A

    Thanks stnkynts, that worked perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy and paste ranges of cells based on values in column A
    By ajk1789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2014, 02:04 AM
  2. Copy and Paste Values based on column data
    By Keste in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2014, 05:24 PM
  3. [SOLVED] Macro - Copy and Combine values in cell and paste it in other cells based on Unique ID
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2012, 05:41 PM
  4. Replies: 1
    Last Post: 10-14-2012, 09:25 AM
  5. paste RNG numbers
    By kaohik78 in forum Excel General
    Replies: 0
    Last Post: 09-26-2012, 10:30 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