vick Posted May 29, 2018 Share Posted May 29, 2018 Hi, I have created script and this script reads data from excel file. now i want to create exe file such a way it has excel data in it. i do not want to send excel with exe file. just exe file so user click on exe it creates excel with same data. if i use fileinstall , it is not compiling and giving error like Error adding file: i am using this line of code: FileInstall("C:\Order.xlsx",@ScriptDir&"\Order.xlsx",1) any suggestion? Link to comment Share on other sites More sharing options...
Subz Posted May 29, 2018 Share Posted May 29, 2018 Works fine for me, have you made sure the file is not open in Excel at the time of compiling? Otherwise you will get an error. Link to comment Share on other sites More sharing options...
Trong Posted May 29, 2018 Share Posted May 29, 2018 13 minutes ago, vick said: FileInstall("C:\Order.xlsx",@ScriptDir&"\Order.xlsx",1) When compiling the script, this file needs to exist: "C:\Order.xlsx" Regards, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now