Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Multiple Workbooks

I have a workbook that has approximately 30 worksheets in it. Needless to
say this is a very large workbook. If I try and send it to the (30)
departments concerned it takes a while to open etc. What I would like to do
(By way of a Macro) is to set up 30 workbooks with each name of the workbook
from the worksheet tab..

Can do?????????
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Multiple Workbooks

Michael;

Close but no cigar. I probably wasn't clear enough. What your macro is
doing is just taking the one ws and giving it a name of all the other tabs.
Actually what I want to do is take the current tab (30) and create a workbook
for each tab in the current workbook with the data in that individual tab.
Each tab is already named such as (5329;5420;5421;6403 etc etc.

"Michael" wrote:

Sub Multfiles()
Dim wks as Worksheet
Application.DisplayAlerts = False
For each wks in Worksheets
newfilename=wks.name
ActiveWorkbook.SaveAs FileName:="C:\" & newfilename & ".xls", _
FileFormat:=xlExcel4, Password:="",
WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False


Next wks

Application.DisplayAlerts = True

End Sub



--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Beep Beep" wrote:

I have a workbook that has approximately 30 worksheets in it. Needless to
say this is a very large workbook. If I try and send it to the (30)
departments concerned it takes a while to open etc. What I would like to do
(By way of a Macro) is to set up 30 workbooks with each name of the workbook
from the worksheet tab..

Can do?????????

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Multiple Workbooks

Not really, if you open your c: drive you will see 30 different workbooks
named after each one of the worksheets and it contains the data under the
that sheet.

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Beep Beep" wrote:

Michael;

Close but no cigar. I probably wasn't clear enough. What your macro is
doing is just taking the one ws and giving it a name of all the other tabs.
Actually what I want to do is take the current tab (30) and create a workbook
for each tab in the current workbook with the data in that individual tab.
Each tab is already named such as (5329;5420;5421;6403 etc etc.

"Michael" wrote:

Sub Multfiles()
Dim wks as Worksheet
Application.DisplayAlerts = False
For each wks in Worksheets
newfilename=wks.name
ActiveWorkbook.SaveAs FileName:="C:\" & newfilename & ".xls", _
FileFormat:=xlExcel4, Password:="",
WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False


Next wks

Application.DisplayAlerts = True

End Sub



--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Beep Beep" wrote:

I have a workbook that has approximately 30 worksheets in it. Needless to
say this is a very large workbook. If I try and send it to the (30)
departments concerned it takes a while to open etc. What I would like to do
(By way of a Macro) is to set up 30 workbooks with each name of the workbook
from the worksheet tab..

Can do?????????

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Multiple Workbooks

Sub Multfiles()
Dim wks as Worksheet
Application.DisplayAlerts = False
For each wks in Worksheets
newfilename=wks.name
ActiveWorkbook.SaveAs FileName:="C:\" & newfilename & ".xls", _
FileFormat:=xlExcel4, Password:="",
WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False


Next wks

Application.DisplayAlerts = True

End Sub



--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Beep Beep" wrote:

I have a workbook that has approximately 30 worksheets in it. Needless to
say this is a very large workbook. If I try and send it to the (30)
departments concerned it takes a while to open etc. What I would like to do
(By way of a Macro) is to set up 30 workbooks with each name of the workbook
from the worksheet tab..

Can do?????????

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Multiple Workbooks

Duke

Thank you; thank you; thank you

Pretty impressive macro.

Frank

"Duke Carey" wrote:

See Ron deBruin's code for this

http://www.rondebruin.nl/copy6.htm


"Beep Beep" wrote:

I have a workbook that has approximately 30 worksheets in it. Needless to
say this is a very large workbook. If I try and send it to the (30)
departments concerned it takes a while to open etc. What I would like to do
(By way of a Macro) is to set up 30 workbooks with each name of the workbook
from the worksheet tab..

Can do?????????



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,081
Default Multiple Workbooks

See Ron deBruin's code for this

http://www.rondebruin.nl/copy6.htm


"Beep Beep" wrote:

I have a workbook that has approximately 30 worksheets in it. Needless to
say this is a very large workbook. If I try and send it to the (30)
departments concerned it takes a while to open etc. What I would like to do
(By way of a Macro) is to set up 30 workbooks with each name of the workbook
from the worksheet tab..

Can do?????????

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Workbooks from multiple links Workbooks TimJames Excel Worksheet Functions 1 December 15th 07 03:34 PM
macro: copy multiple workbooks to multiple tabs in single book Michael Excel Programming 0 July 14th 06 04:53 PM
Combine multiple workbooks into 1 workbook w/ multiple worksheets buffgirl71 Excel Discussion (Misc queries) 1 May 13th 06 12:28 PM
Combine multiple workbooks into 1 workbook w/ multiple worksheets buffgirl71 Excel Discussion (Misc queries) 2 May 12th 06 10:30 PM
adding certain cells in multiple worksheets in multiple workbooks Stephen via OfficeKB.com Excel Worksheet Functions 1 February 4th 05 08:31 PM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"