Consulting

Results 1 to 7 of 7

Thread: VBA to create-rename new sheets in a workbook and export them individually as CSV

  1. #1
    VBAX Newbie
    Joined
    Sep 2017
    Posts
    4
    Location

    VBA to create-rename new sheets in a workbook and export them individually as CSV

    Hi, I have in the worksheet "AllData", a list of data that is updated every day.
    I need a VBA code to copy every 20 rows from this sheet(Alldata) to a new sheet, name it "1", "2","3"...as needed
    and then export every created sheet to a new workbook as CSV.
    (In this example, 'Alldata' sheet contains 103 rows, the code must create 6 new sheets, named 1,2,3,4,5,6 containing respectively 20,20,20,20,20,3 rows copied from Alldata sheet.
    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Cross-posted at ExcelGuru
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876

  4. #4
    VBAX Newbie
    Joined
    Sep 2017
    Posts
    4
    Location
    I am sorry for not reading the forum rules about cross posting, I will edit my post immediately.

  5. #5
    VBAX Newbie
    Joined
    Sep 2017
    Posts
    4
    Location
    To be able to post links your post count must be 5 or greater. Your post count is 2 momentarily
    how can I post the links?

  6. #6
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Quote Originally Posted by chiidzzz View Post
    To be able to post links your post count must be 5 or greater. Your post count is 2 momentarily
    how can I post the links?
    Here the are:
    https://www.excelforum.com/excel-pro...ly-as-csv.html
    https://www.excelguru.ca/forums/show...idually-as-CSV
    http://www.ozgrid.com/forum/showthread.php?t=205786

    (While your post count is low you can post them without the http part, they won't be links but enough to allow people to get to them)

  7. #7
    VBAX Newbie
    Joined
    Sep 2017
    Posts
    4
    Location
    Thank you for your reply, and sorry again. Now if someone provided a solution in a different website, should I post it here?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •