I have this Applescript that reads in a sales order number from Excel but apparent it does not work in the latest version of Excel. Is there something wrong with my code? Here is the code:
repeat
tell application “Microsoft Excel”
–Activate
set currRow to row of selection as string
set currColumn to column of selection as string
set theOrder to «class pfor» of selection as string
end tell
set {text:currRow} to currRow as string
set {text:currColumn} to currColumn as string
set {text:theOrder} to theOrder as string
if theOrder = “” then
activate
display dialog “The script is finished” buttons {“OK”} default button “OK”
return – stops entire script
end if