Hi
I'm new to the power of Excel+VB
I've tried
Path = "c:\temp\test.bat"
Worksheets("Sheet2".Activate
ActiveSheet.SaveAs Filename:=Path, FileFormat:=xlTextPrinter
ActiveSheet.Name = "Sheet2"
I understand why I have to rename the Sheets back again, but why has the Workbook been renamed 'test.bat' ???
Regards
I'm new to the power of Excel+VB
I've tried
Path = "c:\temp\test.bat"
Worksheets("Sheet2".Activate
ActiveSheet.SaveAs Filename:=Path, FileFormat:=xlTextPrinter
ActiveSheet.Name = "Sheet2"
I understand why I have to rename the Sheets back again, but why has the Workbook been renamed 'test.bat' ???
Regards