Reading data in a cell in an Excel Spreadsheet

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Peter Gozinya
Newbie
Posts: 1
Joined: Wed Jan 28, 2004 9:11 pm

Reading data in a cell in an Excel Spreadsheet

Post by Peter Gozinya » Wed Jan 28, 2004 9:44 pm

I am using the scheduler to move data from one cell to another cell in a different row. I need to have the scheduler check for NULL or blank data in a cell to determine how some this is data is moved inside a spreadsheet.

How can I read the contents for a cell, specifically to identify NULL's??

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Feb 03, 2004 10:04 am

Hi,

How are you querying Excel - VBScript/AciveX or DDE? If using VBScript/ActiveX then you can compare to NIL in VBScript. NIL is VBScript's version of NULL in Excel.

In MacroScript compare to nothing, literally, or check it's length with Position, or pass to VBScript and compare with NIL.

if>a=,nothing,something

That would perform nothing if a was nothing.
MJT Net Support
[email protected]

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