In Excel, I have a macro to find the last cell with data (LC) and a macro to set the conditional formatting of a range of cells (CF). In the Excel preferences, I have deselected “Macro virus protection” under the General tab. When I run the macros manually, they work. When I run my script, the script does not execute the macros and it does not provide and error. What am I doing wrong?
tell application “Microsoft Excel”
Activate
Evaluate “‘Personal Macro Workbook’!LC()”
end tell