+ Reply to Thread
Results 1 to 2 of 2

Need VBA to copy first range and paste to next

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    washington
    MS-Off Ver
    Excel 2019
    Posts
    168

    Need VBA to copy first range and paste to next

    Dear expertise

    Dear experts

    i have data table for project dashboard, i want assign project to team accordingly, i want copy and paste same follow-up section

    by doing individually, it takes alot of time. i want vba help copy range from cell C9 till end of date in row 9:9 and column till B

    i have data from c9 till AL9 copy the data and paste in AM9 in cell AM10 Date(=AL10+1) till range of copy

    Mon-Friday set copy to paste same Monday to Friday

    Sat and Sun = Day-Off

    for e.g

    if 4 weeks with data existed ,copy to next 4 weeks mon to fri.

    find the attachment
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Need VBA to copy first range and paste to next

    Hi johnlara,

    Try the attached.

    I have removed the below from cell C8 as I think this is only for the test, not in your real data. This short code works on the 'currentRegion'. So it is important that there are no values in the row above or below the range to copy. If there are, we need to adjust the offset variables.
    "Copy Range From C9 till end of row and paste into first blank row in row 9:9"

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

+ 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] Use range.copy_ destination:= ... instead of range.copy range.paste is not working. Help!
    By Halil93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2020, 03:32 PM
  2. [SOLVED] After Range.Copy Paste and Application.CutCopyMode = False, Range still remains selected
    By badcluster in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2020, 06:18 AM
  3. 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
  4. Loop through files in folder, copy range, Paste range to original workbook
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-09-2016, 05:33 PM
  5. [SOLVED] Help! - Copy Range (Sheet1,A10:F50), Paste Range (Sheet 2,A1:F41), Offset Range & Repeat
    By cjtimmer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2015, 06:27 PM
  6. Copy/Paste range of data excluding certain rows and copy to another workbook
    By HoerbigAdm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2012, 02:51 PM
  7. 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

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