ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Create workbooks from worksheets (https://www.excelbanter.com/excel-discussion-misc-queries/74349-create-workbooks-worksheets.html)

Ian in Ankara

Create workbooks from worksheets
 
Does anyone know an easy way to create multiple single-sheeted workbooks from
a single multi-sheeted workbook?

What I am actually trying to do is create multiple csv files for data import
from a workbook that contains many worksheets.

Chip Pearson

Create workbooks from worksheets
 
Try some code like

Sub AAA()
Dim WS As Worksheet
For Each WS In ThisWorkbook.Worksheets
WS.Copy
Next WS
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Ian in Ankara" wrote in
message
...
Does anyone know an easy way to create multiple single-sheeted
workbooks from
a single multi-sheeted workbook?

What I am actually trying to do is create multiple csv files
for data import
from a workbook that contains many worksheets.




Duke Carey

Create workbooks from worksheets
 
See Ron de Bruin's code at

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

"Ian in Ankara" wrote:

Does anyone know an easy way to create multiple single-sheeted workbooks from
a single multi-sheeted workbook?

What I am actually trying to do is create multiple csv files for data import
from a workbook that contains many worksheets.


Ian in Ankara

Create workbooks from worksheets
 
Works a treat. Thanks a lot!

Ian

"Duke Carey" wrote:

See Ron de Bruin's code at

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

"Ian in Ankara" wrote:

Does anyone know an easy way to create multiple single-sheeted workbooks from
a single multi-sheeted workbook?

What I am actually trying to do is create multiple csv files for data import
from a workbook that contains many worksheets.



All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com