+ Reply to Thread
Results 1 to 6 of 6

Active cell and repeating copy and paste functionality

  1. #1
    Registered User
    Join Date
    04-03-2011
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    11

    Active cell and repeating copy and paste functionality

    Hello,

    I can’t quite figure out the code for what I’m trying to accomplish with a dynamic copy and paste model. I’m trying to accomplish the following sequence.

    1.) fill a range blue 16 cells across and 16 cells down based on the active cell that is selected.
    2.) copy a range of cells from a set range that is constant.
    3.) paste that range of cells based on the original active selected cell in bullet 1, but paste the item 16 cells to the right.

    As you can see, the overall intent is for me to select a cell, then run the macro to erase what’s in that range of cells, then copy and paste a set range to the right of the originally selected cells. Also, any keystroke can be set up to run this macro, not set on anything.

    I feel like I’m closing to coding it but I’m just too much of a novice to understand how to do so.

    Thanks,
    Nathan
    Excel for Mac

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Active cell and repeating copy and paste functionality

    It would be easier to help and test possible solutions if you could you attach a copy of your file? Include a detailed explanation of what you want to do using a few examples and referring to specific cells, rows, columns.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    04-03-2011
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Active cell and repeating copy and paste functionality

    Can do. Please see the attached sample file.
    Attached Files Attached Files

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Active cell and repeating copy and paste functionality

    Try:
    Please Login or Register  to view this content.
    In your original post you say
    erase what’s in that range of cells
    The above macro doesn't erase anything it just colors it blue. If you want to erase the range, instead of coloring it blue, then use this version:
    Please Login or Register  to view this content.
    Last edited by Mumps1; 12-08-2017 at 11:09 AM.

  5. #5
    Registered User
    Join Date
    04-03-2011
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Active cell and repeating copy and paste functionality

    That works. Thanks!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Active cell and repeating copy and paste functionality

    You are very welcome.

+ 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. Replies: 4
    Last Post: 07-03-2015, 04:27 AM
  2. [SOLVED] Return to the active cell before copy and paste
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 04-27-2014, 03:40 AM
  3. [SOLVED] Active Cell Copy and Paste
    By darias in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2014, 04:30 PM
  4. Replies: 6
    Last Post: 07-27-2013, 09:02 AM
  5. [SOLVED] Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 PM
  6. [SOLVED] Copy and Paste Functionality
    By amb in forum Excel General
    Replies: 5
    Last Post: 12-11-2005, 11:50 PM
  7. Copy Paste from Active cell
    By briank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2005, 07:05 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