Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. set inFile to choose file with prompt "Please select an Excel workbook file:"
  2. tell application "Finder"
  3. set theWorkbookFolder to (container of (inFile)) as string
  4. set theWorkbookFile to (name of (inFile)) as string
  5. end tell
  6. set destinationPath to theWorkbookFolder & theWorkbookFile
  7. display alert destinationPath
  8.  
  9.  
  10. tell application "Microsoft Excel"
  11. open inFile
  12. tell active workbook
  13. save active workbook as Excel98to2004 file format in destinationPath
  14. end tell
  15. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement