+ Reply to Thread
Results 1 to 6 of 6

Paste Range to last column with data in row 10

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Oregon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Paste Range to last column with data in row 10

    Good evening Friends. I have a problem that I suspect will be solved easily, but I have not been able to.

    I want to copy a range of cells (F12:F15) and then paste them in rows 12-15 for every column that has a value in row 10, starting at column G.

    Thank you in advance for your assistance.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: Paste Range to last column with data in row 10

    And how many columns would that be at max ? (otherwise we would have to loop them all )

    Or try something like this.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 02-28-2019 at 09:35 PM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    Oregon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Paste Range to last column with data in row 10

    Thank you for the response, we are getting close. I modified your code slightly. I changed the .Value to .Formula and Resize(3) to Resize(4). The problem is that it copies the formula as if all the cell references are absolute. I need the cell references to NOT be absolute.

    The max number of columns would probably be 98.

    Thanks again for your help.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: Paste Range to last column with data in row 10

    how about this.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-22-2014
    Location
    Oregon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Paste Range to last column with data in row 10

    Thank you VERY much, that works perfectly.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: Paste Range to last column with data in row 10

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Filter range, copy range (not entire column), paste in another worksheet
    By LukeNZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2018, 08:28 AM
  2. Copy data in Range and paste into selected column
    By goeman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2018, 03:47 PM
  3. Filter range and copy selected column visible data and paste other sheet
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-19-2017, 11:37 AM
  4. Replies: 7
    Last Post: 12-21-2016, 12:30 PM
  5. VBA Excel: Copy/Paste a column range to another sheet IF column headers match
    By hwatson86 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-07-2016, 08:05 AM
  6. Replies: 2
    Last Post: 01-22-2014, 05:36 PM
  7. Copy range from worksheet based on data in a column and paste to end of another ws
    By DavyNixon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2005, 01:29 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