ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to separately save spreedsheets from the same workbook (https://www.excelbanter.com/excel-discussion-misc-queries/191291-how-separately-save-spreedsheets-same-workbook.html)

anaipa

How to separately save spreedsheets from the same workbook
 
Hello

How can I save spreedsheets from the same .xls workbook maintaining the tab
name on my desktop in .txt format?

Txs

Ron de Bruin

How to separately save spreedsheets from the same workbook
 
You can change the save line in this example
http://www.rondebruin.nl/copy6.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"anaipa" wrote in message ...
Hello

How can I save spreedsheets from the same .xls workbook maintaining the tab
name on my desktop in .txt format?

Txs


Ron de Bruin

How to separately save spreedsheets from the same workbook
 
Below the macro you can see how you must change it for TXT files

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ron de Bruin" wrote in message ...
You can change the save line in this example
http://www.rondebruin.nl/copy6.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"anaipa" wrote in message ...
Hello

How can I save spreedsheets from the same .xls workbook maintaining the tab
name on my desktop in .txt format?

Txs


Gary''s Student

How to separately save spreedsheets from the same workbook
 
Try this macro:

Sub Macro1()
s1 = "C:\Documents and Settings\Owner\Desktop\"
For Each sh In Sheets
sh.Activate
s2 = sh.Name & ".txt"
ActiveWorkbook.SaveAs Filename:=s1 & s2, FileFormat:=xlText
Next
End Sub

--
Gary''s Student - gsnu200791


"anaipa" wrote:

Hello

How can I save spreedsheets from the same .xls workbook maintaining the tab
name on my desktop in .txt format?

Txs



All times are GMT +1. The time now is 06:07 PM.

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