• 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
Re: excel save as csv
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: excel save as csv


  • Subject: Re: excel save as csv
  • From: "Stockly, Ed" <email@hidden>
  • Date: Fri, 13 Nov 2015 23:51:34 +0000
  • Thread-topic: excel save as csv
  • X_v_e_cd: 6758db424ba59b70e1a2a2fe79294034
  • X_v_r_cd: 5a43373b09619616497a044f59cc3224

 How about: 

 save as "Macintosh HD:Users:sam:Desktop:newtargetinv.csv" as CSV file format

Rather than "save in"

From: <applescript-users-bounces+ed.stockly=email@hidden> on behalf of Sam Rutherford <email@hidden>
Date: Friday, November 13, 2015 at 3:32 PM
To: AppleScript Digest <email@hidden>
Subject: excel save as csv

i have a script that saves an excel file as a cvs. it worked for years with excel 11.5.9, but i recently had to upgrade my os to 10.11.1. excel 11.5.9 no longer worked so i had to upgrade it to 15.15.
here’s the script:

tell application "Microsoft Excel"
openfile "Macintosh HD:Users:sam:Desktop:newtargetinv.xls"
tell workbook 1
tell sheet 1
save in "Macintosh HD:Users:sam:Desktop:newtargetinv.csv" as CSV file format
end tell
closewithout saving
end tell
end tell

like i said. it used to work flawlessly.
now it results in this error:

error "Microsoft Excel got an error: Parameter error." number -50

does anyone know how to fix my script?

by the way. i am pretty much a noob.
i dont write applescripts. i find them and tweet them.

thanks in advance.

sam
________________________________________________________________
Sam Rutherford 
Music City Metals
615/255-4481
email@hidden


 _______________________________________________
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 csv
      • From: "Stockly, Ed" <email@hidden>
References: 
 >excel save as csv (From: Sam Rutherford <email@hidden>)

  • Prev by Date: excel save as csv
  • Next by Date: Re: excel save as csv
  • Previous by thread: excel save as csv
  • Next by thread: Re: excel save as csv
  • Index(es):
    • Date
    • Thread