Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to write out from a VBA program a worksheet as a text file. I
have code that use to work, but now doesn't. Also, when I try to write out the worksheet using <File,<Save As a text file, it works fine. ; no "Read-only" error. Here's the code: ActiveWorkbook.SaveAs _ FileName:=TS, _ ' where TS is a valid path/file name FileFormat:=xlText, _ CreateBackup:=False, _ ReadOnlyRecommended:=False Any ideas why the VBA code doesn't work? Mac |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Try: FileFormat:=xlTextMac (it sounds like the appropriate one) -- Jim Cone Portland, Oregon USA "Mac Lingo" wrote in message I am trying to write out from a VBA program a worksheet as a text file. I have code that use to work, but now doesn't. Also, when I try to write out the worksheet using <File,<Save As a text file, it works fine. ; no "Read-only" error. Here's the code: ActiveWorkbook.SaveAs _ FileName:=TS, _ ' where TS is a valid path/file name FileFormat:=xlText, _ CreateBackup:=False, _ ReadOnlyRecommended:=False Any ideas why the VBA code doesn't work? Mac |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Read Only" error when attempting to open EXCEL file | Excel Discussion (Misc queries) | |||
"Unable to Read File" error message in Excel - solutions? | Excel Discussion (Misc queries) | |||
"Cannot access read-only document" (I get this error when I try to open an Excel file) | Excel Discussion (Misc queries) | |||
"Cannot access read-only document" (I get this error when I try to open an Excel file) | Setting up and Configuration of Excel |