+ Reply to Thread
Results 1 to 3 of 3

HELP with copying/pasting specific range into different workbook

Hybrid View

wojizzle HELP with copying/pasting... 10-19-2012, 01:53 AM
FDibbins Re: HELP with copying/pasting... 10-19-2012, 02:11 AM
wojizzle Re: HELP with copying/pasting... 10-19-2012, 08:29 AM
  1. #1
    Registered User
    Join Date
    10-17-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    5

    HELP with copying/pasting specific range into different workbook

    I am trying to figure the VBA code to copy the contents of a certain range that always occurs in the same place over the course of 478 worksheets, and then paste this information in successive rows in a different workbook.

    Here is my code:


    Sub Macro1()
    Dim ws As Worksheet
    
    ' Macro1 Macro
    '
    
    '
        Windows("SurveySummary.xlsm").Activate
            For Each ws In ThisWorkbook
                With Range("C4:J4").Select
                Application.CutCopyMode = False
                     Selection.Copy
             End With
        
            Windows("RFP Comparison Base - automation.xlsm").Activate
        
            Range("B8").Offset(1, 0).Select
             ActiveSheet.Paste
        Next
    End Sub



    Any help would be much appreciated!
    Last edited by FDibbins; 10-19-2012 at 02:12 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: HELP with copying/pasting specific range into different workbook

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-17-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: HELP with copying/pasting specific range into different workbook

    I am trying to figure the VBA code to copy the contents of a certain range that always occurs in the same place over the course of 478 worksheets, and then paste this information in successive rows in a different workbook.

    Here is my code:

      
    Sub Macro1()
    Dim ws As Worksheet
    
    ' Macro1 Macro
    '
    
    '
        Windows("SurveySummary.xlsm").Activate
            For Each ws In ThisWorkbook
                With Range("C4:J4").Select
                Application.CutCopyMode = False
                     Selection.Copy
             End With
        
            Windows("RFP Comparison Base - automation.xlsm").Activate
        
            Range("B8").Offset(1, 0).Select
             ActiveSheet.Paste
        Next
    End Sub
    Any help would be much appreciated!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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