I'm trying to attach an excel sheet, with my script, so that I can have my excel sheet data into clipboard, from which I can use those in a seperate application. I started off like in the following code, but I keep on getting this error "The following variable name contains an illegal character: 'XL.Visible'. The program will exit."
When I tried to make that line as comment, I got another error, saying, "Call to non-existent function" at "ComObjCreate("Excel.Application")". If I try something else, I get an error again at my file path, saying "The leftmost character in the above expression is invalid". So what shall I do to make it work?
Thanks in advance
This is my script.
Code: Select all
Path := "%A_Desktop%\Data\Input.xlsx" XL := ComObjCreate("Excel.Application") XL.Workbooks.Open(Path) XL.Visible := True