Results 1 to 2 of 2

Copy data from several ranges to new sheet

Threaded View

jpruffle Copy data from several ranges... 04-02-2015, 02:30 PM
p24leclerc Re: Copy data from several... 04-02-2015, 09:00 PM
  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Copy data from several ranges to new sheet

    Hi,

    I am working on a spreadsheet that enables calls to be monitored for QA. The first sheet enables the user to enter data, then a button can be used to submit the data which should place it in the 'Data' sheet with each submission entered on a new row. As the data being entered is in several different ranges I cannot get the next set of data entered onto the next row on the 'Data' sheet, can you advise please? My code is below and I've attached the workbook.

    Thank you in advance. JP

    Sub CopyData()
    
      Sheets("QM Form").Select
        Range("C3:C6").Copy
        Sheets("Data").Select
        'NextRow = Sheets("Data").Range("B" & Rows.Count).End(xlUp).Row + 1
        'Columns("A").Find("", Cells(Rows.Count, "A")).Offset(1, 0).Select
        
        Range("A5000").End(xlUp).Offset(1, 0).Select
        'Range("AT4").End(xlToLeft).Select
       ' Range("B5000").End(xlUp).Select
        
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
            
       Sheets("QM Form").Select
        Range("H4:H9").Copy
        Sheets("Data").Select
        Range("AT4").End(xlToLeft).Offset(0, 1).Select
        'Range("B5000").End(xlUp).Select
        
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
       
       Sheets("QM Form").Select
        Range("H11:H40").Copy
        Sheets("Data").Select
        Range("AT4").End(xlToLeft).Offset(0, 1).Select
        'Range("B5000").End(xlUp).Select
        
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
       
       Sheets("QM Form").Select
        Range("A43").Copy
        Sheets("Data").Select
        Range("AT4").End(xlToLeft).Offset(0, 1).Select
        'Range("B5000").End(xlUp).Select
        
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
       
       Sheets("QM Form").Select
        Range("N3").Copy
        Sheets("Data").Select
        Range("AT4").End(xlToLeft).Offset(0, 1).Select
        'Range("B5000").End(xlUp).Select
        
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
       
       Sheets("QM Form").Select
        Range("N17").Copy
        Sheets("Data").Select
        Range("AT4").End(xlToLeft).Offset(0, 1).Select
        'Range("B5000").End(xlUp).Select
        
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
          
       
    End Sub
    Attached Files Attached Files
    Last edited by jpruffle; 04-03-2015 at 11:51 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy data from dynamic ranges and paste it another sheet
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2015, 04:58 AM
  2. Copy ranges of data from Master Sheet to Slave Sheets
    By mike.haley in forum Excel General
    Replies: 0
    Last Post: 01-23-2013, 12:51 PM
  3. [SOLVED] Need help with macro to copy and paste data from multiple ranges to new sheet
    By chicolocal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2013, 07:48 PM
  4. Replies: 2
    Last Post: 07-17-2012, 09:18 PM
  5. copy paste data with multiple selected ranges from sheet to sheet
    By sivdin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2011, 02:45 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