+ Reply to Thread
Results 1 to 4 of 4

Thread: Exporting Excel worksheet in multiple workbooks

  1. #1
    Registered User
    Join Date
    12-13-2010
    Location
    Fiji
    MS-Off Ver
    Excel 2003
    Posts
    20

    Exporting Excel worksheet in multiple workbooks

    Hi there

    I have a task to export multiple excel worksheets into multiple workbooks, I don't think it is possible but I am also not too familiar with macros and how they work- I am still learning
    Wondering if this is possible and if somebody could advise me on how and where to start look to get me started
    I have tried googling it but to no avail

    Thanks

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: Exporting Excel worksheet in multiple workbooks

    What do want to do? Split each sheet from one workbook to separate workbooks?
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  3. #3
    Registered User
    Join Date
    12-13-2010
    Location
    Fiji
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Exporting Excel worksheet in multiple workbooks

    Hi yes that is exactly what i am trying to do, split each sheet from one workbook into multiple workbooks, is that possible?

  4. #4
    Registered User
    Join Date
    12-13-2010
    Location
    Fiji
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Exporting Excel worksheet in multiple workbooks

    found the solution on a different forum

    code below
    
    Sub Macro5()
    For i = 1 To ActiveWorkbook.Worksheets.Count
    Sheets(i).Copy 'to new workbook
    Set NewWks = ActiveSheet
    With NewWks.Parent
    Application.DisplayAlerts = False
    .SaveAs Filename:="C:\Macros\" & NewWks.Name & ".xls"
    Application.DisplayAlerts = True
    .Close SaveChanges:=False
    End With
    Next i
    MsgBox "Done!"
    
        Range("H41").Select
        ActiveWindow.Close
    End Sub
    moderator please close this thread


    Thanks

+ 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.2.0