XLGetCell issue

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mastag
Newbie
Posts: 1
Joined: Mon Sep 05, 2011 1:55 pm

XLGetCell issue

Post by mastag » Mon Sep 05, 2011 2:11 pm

Hi there,

I'm working on a business application that collects data from Excel documents.
I'm currently using 12.1.10e trial version.

But I'm having a hard time getting the demo ready.

Code: Select all

XLOpen>C:\Users\Gino\Documents\demo\xsportal.xlsx,0,xlBook
XLGetCell>xlBook,Blad1,2,C,strCell
mdl>%strCell%
The message dialog seems to return:

Code: Select all

ERR: OLE error 800A03EC
What's wrong with these lines?
I've double checked the Excel document and I'd like to get Sheet: Blad1 C2 which contains a phonenumber.

Any thoughts on this?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Sep 05, 2011 2:18 pm

The code for your XLGetCell line should be:

XLGetCell>xlBook,Blad1,2,3,strCell

(it wants cell,row coordinates, not grid reference).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts