+ Reply to Thread
Results 1 to 4 of 4

VBA / Macro to copy and paste 100 rows iteratively

  1. #1
    Forum Contributor
    Join Date
    08-30-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    142

    VBA / Macro to copy and paste 100 rows iteratively

    I have numerous spreadsheets approx 80K plus rows.

    I need to copy cell a1 to a999 into a note pad file, then save that file as 20151, then go back to the spreadsheet and copy the next 1000 cells ie. a1000 to a1999, cop them to a notepad file and save as 20152.

    And continue until I have copied all cells in the worksheet.

    I am sure this is possible but have very little vba experience

    Any help wold be great
    Thanks
    Ted

  2. #2
    Forum Contributor
    Join Date
    08-30-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    142

    Re: VBA / Macro to copy and paste 100 rows iteratively

    Just for clarification i want to be able to select cell A1:A999 (copy and paste) go back to excel and select a1000:a1999 then A2000:A2999. Thanks

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

    Re: VBA / Macro to copy and paste 100 rows iteratively

    Without selecting, copying and pasting
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-30-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    142

    Re: VBA / Macro to copy and paste 100 rows iteratively

    Thanks for your reply.

    I think im doing someting wrong as the code errored and stated permission denied. Having run the debugger it stopped here

    With CreateObject("Scripting.FileSystemObject").CreateTextFile(ThisWorkbook.Path & "\" & x & ".txt", True)

    Im assuming I need to amend this part but not sure what with

    Thanks
    Ted

+ 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. Replies: 1
    Last Post: 01-07-2019, 10:54 AM
  2. [SOLVED] Macro Help Copy&Paste Rows
    By Leoparddd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2014, 02:35 PM
  3. Macro to copy rows based on moving date and paste the rows into an identical sheet
    By ivandc1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2014, 11:59 AM
  4. [SOLVED] Macro to copy 4 rows and paste every 6th row
    By gavinharper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2013, 10:49 AM
  5. Macro to Copy/Paste 4 Rows over 500 Rows
    By snapa in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-20-2009, 12:21 PM
  6. Iteratively delete rows from a spreadsheet
    By wruwtrix in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2009, 10:17 PM
  7. A macro to copy and paste four rows
    By d_rock90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2008, 10:15 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