Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Savings Each Sheet as a Separate File


Hi,

Does anyone have any suggestions to have excel automatically Save eac
Sheet in a workbook as a separate file?

Thank

--
STEVE
-----------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...nfo&userid=187
View this thread: http://www.excelforum.com/showthread.php?threadid=40094

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Savings Each Sheet as a Separate File

You did not say where you wanted it saved or by what name so here is a basic
shell that you can modify as necessary.

Sub SaveSheets()
Dim wks As Worksheet
Dim wbk As Workbook

For Each wks In Worksheets
wks.Copy
Set wbk = ActiveWorkbook
wbk.SaveAs ThisWorkbook.Path & "\" & wks.Name
Next wks

End Sub
--
HTH...

Jim Thomlinson


"STEVEB" wrote:


Hi,

Does anyone have any suggestions to have excel automatically Save each
Sheet in a workbook as a separate file?

Thanks


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872
View this thread: http://www.excelforum.com/showthread...hreadid=400941


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Savings Each Sheet as a Separate File


Thanks Jim!

Everything worked great! I really appreciate your help!


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872
View this thread: http://www.excelforum.com/showthread...hreadid=400941

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
Split text file into Excel sheet and separate the final results intoa new sheet Luciano Paulino da Silva Excel Worksheet Functions 8 April 18th 09 02:00 AM
Retriving Values from a separate sheet of a different file Anift Excel Worksheet Functions 3 April 4th 06 01:42 PM
Saving a sheet as a separate file Herren''s Excel Discussion (Misc queries) 2 March 30th 06 09:46 PM
How do I save each sheet as a separate .xls file by using macro? Min Excel Programming 5 February 17th 05 10:47 PM
How to save each sheet as a separate excel-file Audio_freak Excel Programming 4 January 4th 04 08:56 PM


All times are GMT +1. The time now is 09:24 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"