Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following works in Excel 2003 and is a macro, but it should help.
Sub SaveSheetToFile() str1 = ThisWorkbook.Name Workbooks(str1).ActiveSheet.Cells.Select Selection.Copy str2 = InputBox("Enter folder name. e.g. c:\MyFiles\") str3 = InputBox("Enter file name. e.g. Book1") Workbooks.Add ActiveSheet.Paste ActiveWorkbook.SaveAs Filename:=str2 & str3 & ".csv", FileFormat:= _ xlCSVMSDOS, CreateBackup:=False ActiveWorkbook.Close True End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Export to Excel with different sheet names | Excel Programming | |||
export excel sheet to visio | Excel Discussion (Misc queries) | |||
export excel data to another sheet | Excel Programming | |||
How do I export excel spread sheet to my Palm T3? | Excel Discussion (Misc queries) | |||
Export Excel Sheet to JPG or TIF | Excel Programming |