+ Reply to Thread
Results 1 to 4 of 4

Macro to copy a range of cells to the last available row in another range

  1. #1
    Registered User
    Join Date
    06-16-2017
    Location
    Italy
    MS-Off Ver
    Excel 15.21.1
    Posts
    10

    Question Macro to copy a range of cells to the last available row in another range

    Hey there! I am new to macros, but I want to create a sort of a log system and have information collected stacked.

    I am using Google Sheets and I will consolidate what I want to register in my log in a specific range (c20:I20)
    I want to copy this data into the first available row in the range C23:I35

    I can get to copy the source data into the range I want... but it always copy (and overwrites everytime I run the script) on the first row of the destination range, not the first available. This is the macro I have... can anyone help me to figure it out what is wrong?

    Please Login or Register  to view this content.
    Last edited by alansidman; 04-09-2019 at 09:38 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: Macro to copy a range of cells to the last available row in another range

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-16-2017
    Location
    Italy
    MS-Off Ver
    Excel 15.21.1
    Posts
    10

    Re: Macro to copy a range of cells to the last available row in another range

    Noted, Alan. My apologies and thanks for doing it this time. In the future I'll make sure to do it myself! 😊

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,513

    Re: Macro to copy a range of cells to the last available row in another range

    Don't know about Google but this works in Excel.
    That is if I understand you right.
    Please Login or Register  to view this content.

+ 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] Macro to copy cells from a selected range and just paste values back to that same range
    By catscats11 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-18-2019, 02:59 PM
  2. Copy range A of cells if value is in range B & paste in range B/Multiple Or
    By Jeremycad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2018, 04:28 AM
  3. Change range of cells within VBA macro and copy and paste to fixed cell range
    By Mannyny in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2012, 11:51 AM
  4. [SOLVED] VBA Copy a range of cells values using the range of cells in a formula (which will change)
    By murtaep in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 06-05-2012, 07:59 AM
  5. Replies: 2
    Last Post: 05-31-2012, 05:37 AM
  6. macro to conditionally copy range of cells
    By jolee217 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2010, 04:57 PM
  7. Macro to copy a range of cells to another worksheet
    By jonnyuk3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2008, 08:48 AM

Tags for this Thread

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