A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

converting lot of microsoft worksheets to separate workbook



 
 
Thread Tools Display Modes
  #1  
Old July 28th, 2004, 04:21 PM
n.venkatasubramanian
external usenet poster
 
Posts: n/a
Default converting lot of microsoft worksheets to separate workbook

I have 300 worksheets in a workbook, now I want to convert
all the 300 worksheets into a separate, separate workbook
totall I should have 300 workbooks, please tell me the
shortcut method to do this,please reply to my mail,

  #2  
Old July 28th, 2004, 04:31 PM
Ron de Bruin
external usenet poster
 
Posts: n/a
Default converting lot of microsoft worksheets to separate workbook

Hi

With a macro you can do this

Sub test()
Dim a As Integer
Dim wb As Workbook
Application.ScreenUpdating = False
For a = 1 To ThisWorkbook.Worksheets.Count
ThisWorkbook.Sheets(a).Copy
Set wb = ActiveWorkbook
wb.SaveAs "C:\Yourfolder" & wb.Sheets(1).Name & ".xls"
wb.Close False
Set wb = Nothing
Next a
Application.ScreenUpdating = True
End Sub

Possible problem can be

Copying Worksheet Programmatically Causes Run-Time Error 1004
http://support.microsoft.com/default...84&Product=xlw


--
Regards Ron de Bruin
http://www.rondebruin.nl


"n.venkatasubramanian" wrote in message ...
I have 300 worksheets in a workbook, now I want to convert
all the 300 worksheets into a separate, separate workbook
totall I should have 300 workbooks, please tell me the
shortcut method to do this,please reply to my mail,



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink to individual worksheets in same workbook kgriffith General Discussion 5 June 22nd, 2004 06:35 PM
How to sort info from separate worksheets on summary sheet USNRet General Discussion 1 June 21st, 2004 05:24 PM
How many worksheets in one workbook? Janice Lathen New Users 2 May 17th, 2004 05:54 PM
format multible worksheets in a workbook Eric Worksheet Functions 2 May 12th, 2004 03:21 AM
Get list worksheet names for only visible worksheets in a workbook Norman Harker Worksheet Functions 1 February 15th, 2004 08:39 AM


All times are GMT +1. The time now is 10:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.