+ Reply to Thread
Results 1 to 5 of 5

VBA copy range of cells, paste on next blank cell down

  1. #1
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    VBA copy range of cells, paste on next blank cell down

    Hi,

    I am currently trying to run a macro that will copy a range of cells in my case F3:I50 from sheet Stopwatch and then paste them onto another sheet in a different folder.

    Below is my VERY basic code which copies and pastes but with it currently it will just paste over the previous rather than move down and paste into the next blank box, can anyone help me add in "search for blank" aspect?

    Thank you in advance!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: VBA copy range of cells, paste on next blank cell down

    How about
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi ! Try this ‼


    Replace your piece of code by this one :

    PHP Code: 
             V = [F13:L19].Address(External:=True)
        
    With Workbooks.Open("S:\SEO Folder\SEO Trend Analysis\Team Totals.xlsx")
             
    Range(V).Copy .Worksheets("Aidan H").Cells(Rows.Count1).End(xlUp)(2)
    '        .Close True
        End With 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 03-22-2018 at 10:36 AM. Reason: optimisation …

  4. #4
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    Re: VBA copy range of cells, paste on next blank cell down

    They both work! thank you!

    I'm going to use fluff13's solution because I understand it more and therefore can manipulate it.

    MarcL - I think you are way more advanced at this stuff than my brain and comprehend

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: VBA copy range of cells, paste on next blank cell down

    Glad we could help & thanks for the feedback

+ 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 paste value into first Blank Cell in a range of Cells
    By FranktheBank in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-27-2015, 05:15 PM
  2. Copy Range and Paste only Values (ignore blank cells)
    By ksayet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2015, 04:37 PM
  3. [SOLVED] copy only non-blank cells in range and paste to new range.
    By scrabtree23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2015, 08:10 PM
  4. [SOLVED] Macro to copy and paste new data into the next blank cell WITHIN a range
    By MattRNR in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 10-22-2015, 12:45 AM
  5. [SOLVED] Copy / Paste range from one sheet to another, if cell in column A is not blank
    By Tapyr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2014, 09:18 AM
  6. Copy range and paste as value and clearcontants of blank cells and number
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2014, 06:59 AM
  7. Replies: 18
    Last Post: 02-10-2013, 05:32 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