• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Excel Save as text question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Excel Save as text question


  • Subject: Excel Save as text question
  • From: Oakley Masten <email@hidden>
  • Date: Thu, 7 May 2009 12:44:35 -0700 (PDT)

This saves the file with the name and path just fine but it is not really a text(tab delimited) file.

It is still some kind of Excel file.

What am I doing wrong here?



set TargetFolder to "Macintosh HD:Users:omasten:Desktop:ExcelTest"

set theSaveName to (TargetFolder as text) & ":" & "FirstFile.txt"

tell application "Microsoft Excel"

activate

set OriginalSaveFormat to default save format

--Change the defalut save format

set default save format to text Mac

--set default save format to workbook normal file format

tell active sheet

save as filename theSaveName with replacing

end tell

set default save format to OriginalSaveFormat

end tell


I want to create a new file.

Then populate it with data.

They save it as a txt file.

Also the "with Replacing" doesn't appear to work all the time.


Any help would be appreciated


Thanks

Oakley

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Excel Save as text question
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Detecting if Time Machine is busy backing up
  • Next by Date: re:Excel Save as text question
  • Previous by thread: Detecting if Time Machine is busy backing up
  • Next by thread: Re: Excel Save as text question
  • Index(es):
    • Date
    • Thread