(* excel_getvalues.applescript *)
tell application "Microsoft Excel"
set example1 to get value of range "E1:E1" of active sheet
set example2 to string value of range "A1:A1" of active sheet
set example3 to get value of range "X2:AC4" of active sheet
tell worksheet 2
set example4 to value of cell "A1"
end tell
end tell
(* excel_saveascsv.applescript
Saves the active sheet of workbook as csv file
*)
set theFile to POSIX file "/Users/csg/Desktop/temp.csv" as text
tell application "Microsoft Excel"
save workbook as workbook 1 filename theFile file format CSV file format
end tell
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the ...
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.