Hi All
Could you please support me , i try to write script on the graphic for open the Excel sheet when I press on push button on graphic i tried to write the code but it have error ,please see attached snapshot, Looking for your support
In reply to Nicholas Stom:
In reply to Hassan.hameed:
In reply to Lun.Raznik:
In reply to LaurentB:
The VB code provided to you is working well, just copy it with attention and take care about the path of the file . Path must be adapted to you own location file.
Into prinstcreen you provide I see at least 2 mistakes....
I See "Reply" in the code ....what is it ?
I see that the path of the file start with / without the begining of the path c:/ ...
I don't see the end of line so I suppose this line is well terminated by the double quote signe " . ( this is the single double quote ", not 2 times the single quote '
The following line works as charm, but you must have no other wrong line in VBA and modify the exact path of files
frsruntask "C:\Program Files (x86)\Microsoft Office\Office16\excel.exe C:\Users\myname\Desktop\book1.xlsx"
As Lun said the following line works also
frsruntask "C:\Program Files (x86)\Microsoft Office\Office16\excel.exe", "C:\Users\myname\Desktop\book1.xlsx"
Again adding a simple button in graphic could be dangerous if it's made by a beginner, the wrong code can have consequences on process control. Behind the keyboard you control a plant, not only a file as office application....
Depending of where you are located you can contact directly Emerson training centers, They can propose a various courses for each cases.
www.emerson.com/.../educational-services