Jump to content

Run an xls file ?


Recommended Posts

No, with excel on the machine.

Here is the meaning : Everydays, I have to open the file, and click on different buttons. And I would like to make an autoit executable (that could be automaticaly launched with the windows scheduler) which open the xls file, and clik on the different buttons.

Link to comment
Share on other sites

Check out

http://www.autoitscript.com/forum/index.ph...02&hl=excel

What you want to do should definitely be achievable...

I haven't used the excel UDFs or I'd give you some more pointers.

This UDF should get you to the point of having excel open and running then you need Run Method from MSDN if these "buttons" are set to run a macro or function.

Kohr

Link to comment
Share on other sites

Quite difficult to understand ^^.

My main question is : Is it possible to make something like run("start.xls")

This line code one don't works, i have an error saying : unable to execute the external program.

Is it a way to open the xls file and do winwaitactive et send like with a .exe file ?

Edited by Zak Blayde
Link to comment
Share on other sites

You could use

#include <Process.au3>
$rc = _RunDos("start start.xls")

but I would still recommend looking into one of the Excel udfs


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Yes there is... theres more then one way to do it, below is a simple way taken from the help file..

RunWait(@COMSPEC & " /c Start excel.xls")

Here excel.xls exists in the same place as the script.

Edited by someone
While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...