Moderator: 2020vision
by Mitch » Mon May 07, 2007 2:48 am
by PeteB » Mon May 07, 2007 9:20 am
by GaryRussell » Mon May 07, 2007 11:05 am
by Mitch » Mon May 07, 2007 11:26 am
PeteB wrote:If you have create an instance of Excel and a new workbook, you are mostly there
Is the workbook already open in Excel, or will you need to search for it on the drive?
If it is open, the Excel.Application object should have a property Workbooks, and this should have a property / method like item or GetItem() - have a look at the help for that - you should be able to pass the name of the workbook in as a String.
If you are opening it from the drive it will be a bit more fiddly - can't remember how just now...
by Mitch » Mon May 07, 2007 11:28 am
GaryRussell wrote:The code I use in BA to automate Excel uses the following function to get an existing instance of Excel.
xl = GetObject(, "Excel.Application")
wb = xl.Workbooks(1) 'first workbook
ws = wb.Worksheets(1) 'first worksheet in workbook 1
Note that the workbooks and worksheets start at index 1, not 0
The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.
Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.
Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.
He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.
We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.