Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save sheet as .TXT out of Workbook
I'd like to save a sheet as a .txt file out of my workbook without closing the actual workbook and keeping the workbook as my .xls format. Thanks for any help! ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save sheet as .TXT out of Workbook
Use the sheet copy method to copy as a new workbook then do File/Save As on that.
Regards BrianB ================================================== ============== goepf wrote in message ... I'd like to save a sheet as a .txt file out of my workbook without closing the actual workbook and keeping the workbook as my .xls format. Thanks for any help! ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save sheet as .TXT out of Workbook
Thanks that's what I did. If it helps somebody, here is an example fo code: Dim FileName As String, path As String, DLSfile As String FileName = Windows.Application.ActiveWorkbook.Name path = "DestinationPath" Sheets("toCopy").Select Sheets("toCopy").Copy DLSfile = "DL72112.txt" ActiveWorkbook.SaveAs FileName:=path & DLSfile, fileFormat:=xlText CreateBackup:=False ActiveWindow.Clos ----------------------------------------------- ~~ Message posted from http://www.ExcelTip.com ~~View and post usenet messages directly from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Please help! When I 'save changes' to my workbook/sheet | Excel Discussion (Misc queries) | |||
save each sheet of a workbook as its own workbook | Excel Discussion (Misc queries) | |||
Save Sheet as Workbook | Excel Discussion (Misc queries) | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
Can I only save one sheet out of the workbook? | Excel Discussion (Misc queries) |