+ Reply to Thread
Results 1 to 4 of 4

paste static range into dynamic location with search

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Logan, Utah
    MS-Off Ver
    Excel 2007
    Posts
    15

    paste static range into dynamic location with search

    I have been looking all over google for some help creating a macro that can copy a range, search a cell, go to the corresponding cell then paste the range. I have found some things that come close but i have come here as a last result.

    In the example I need the range in C7:C11 to be copied to the range D18:D22 after the macro looks to see what month to paste the range into.

    The Target data B6:E11 will change as well as the date in cell C3

    So next month when the month changes as well as the data i need the macro to select the data....find the right column and then paste the data.

    I'm building a tracker to take a monthly report, select the target data and paste it so that way i can build a tracker to track the data and show a monthly trend in the data instead of just a monthly snapshot.

    I hope this makes sense. Thanks in advanced. I'm sorry but my VB knowledge is very limited.
    Attached Files Attached Files

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: paste static range into dynamic location with search

    Try this. This is assuming that the names in the "entering data" area is always sorted the same way as the "plotted" area.
    Attached Files Attached Files
    多么想要告诉你 我好喜欢你

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    Logan, Utah
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: paste static range into dynamic location with search

    Looks like it works great. what would i need to add if I needed to paste to sheet2?

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: paste static range into dynamic location with search

    Just change ActiveSheet to Sheets("Sheet2").

+ 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] Change Static Range of Formula to Dynamic Range
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-24-2014, 10:15 AM
  2. Dynamic Range while adding static single row
    By bpmcnary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 04:14 PM
  3. Loop through range names for location of dynamic paste
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-17-2011, 11:01 AM
  4. Turn static RANGE to dynamic
    By Barmoley in forum Excel General
    Replies: 7
    Last Post: 11-14-2010, 04:33 PM
  5. copy data from dynamic range to static range
    By barkarlo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2009, 02:26 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