Jump to content
vick

copy data file in exe

Recommended Posts

vick

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?

 

Share this post


Link to post
Share on other sites
Subz

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.

Share this post


Link to post
Share on other sites
VIP
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,
 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×