Sign in to follow this  
Followers 0
cypher175

Excel Management - Functions..??

6 posts in this topic

I just discovered AutoIts Excel Management Functions and got a script working utilizing them..

But what I really need to do is run multiple scripts about 2-3 simultaneously that will all write into the same single EXCEL document..

Is there any way to do this at all,

If the first script to run does this..

$oExcel = _ExcelBookOpen(@ScriptDir&"\DATA.XLS")

can the 2+ scripts to run only do this to attach to the 1st running Excel instance..??

Or do I have to do something else instead to attach to the 1st opened Excel doc..

$oExcel = _ExcelBookAttach(@ScriptDir&"\DATA.XLS")

And when any script needs to write something into a column/row/cell I use..

$ExcelArray = _ExcelReadSheetToArray($oExcel)
$ROW = $ExcelArray[0][0]+1
_ExcelWriteCell($oExcel, $Data_1, $ROW, 1)
_ExcelWriteCell($oExcel, $Data_2, $ROW, 2)
_ExcelWriteCell($oExcel, $Data_3, $ROW, 3)
_ExcelBookSaveAs($oExcel, @ScriptDir&"\DATA.XLS", "xls", 0, 1)

Does this seem like a practical solution for what I'm trying to do, or would there be a better way to implement something like this..??

Also are there any AutoIt Excel Functions to SORT the Rows/Columns of an Excel document at all..??

Share this post


Link to post
Share on other sites



If the problem you're tackling is still the same as in your previous 2 threads then, YES there is: SQLite will allow as many concurrent writers scripts your PC will be able to run, without any risk of conflict and with automatic sorting on the fly of the data you store along any criterion you choose and without relying on large external programs.

Ask for some help on this if you're interested.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

I might try SQLite out a lil later cuz right now the only thing I really need is to have a function or something that can Auto Sort the ROWS/COLUMNS of my Excel Doc..

Are there any AutoIt functions at all that can do this Excel Auto Sorting or is there some feature in Excel that can do it..??

Share this post


Link to post
Share on other sites

You might as well use the scripting dictionary for that.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Are you talking about the AutoIt help file, if so I looked in there and couldn't seem to find anything about sorting the excel doc..

Share this post


Link to post
Share on other sites

No, just search scripting dictionary in the forum help and you'll have a lot of examples ready for use (that's very simple) which may well fit your bill without having to rely on anything else.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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
Sign in to follow this  
Followers 0