Test for blank cell in Excel - Date field

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
wilfredtr
Newbie
Posts: 16
Joined: Thu Aug 14, 2003 3:59 pm
Contact:

Test for blank cell in Excel - Date field

Post by wilfredtr » Thu Aug 14, 2003 4:20 pm

I was using the following code to test for a blank cell and then stop. However it doesn't work in a date field! Can anyone help? This is my first post. -Wilfred


Let>WW_TIMEOUT=5
CapsOff
LABEL>TOP
// This is the beginning of the script
SetFocus>Excel*
Press CTRL
Send>c
Wait>.5
Release CTRL
GCB>WITCB
IF>WITCB.25
Send>WITCB
// This pastes the copied cell into whereever
Wait>0.25
Press Up
Wait>0.25
Press Left
// This repeats the action
GOTO>TOP
LABEL>END
Last edited by wilfredtr on Thu Aug 14, 2003 5:32 pm, edited 1 time in total.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Aug 14, 2003 4:28 pm

Hi Wilfred....................

You wrote:
I was using the following code
That would be very helpful it was included. Can't solve the problem without it ...wanna try again? :D

Maybe your second post will be of more use?
===============================
(Edited after code was supplied by editing original message).

Thanks, that's much better......watch for solution now.... :D
Last edited by Bob Hansen on Fri Aug 15, 2003 3:41 am, edited 1 time in total.

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

Post by support » Thu Aug 14, 2003 5:46 pm

[quote]GCB>WITCB
IF>WITCBWITCB
Length>WITCB,lenWITCB
IF>lenWITCB<1,END
// This tests for the blank cell
MJT Net Support
[email protected]

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