Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Checking when target.values are empty. What am I doing wrong?

I have the following code

If Target.Offset(0, 0).Value Target.Offset(-1, 0).Value And _
Target.Value Is Not Empty And _
Target.Offset(0, 1).Value Is Not Empty And _
Target.Offset(0, 2).Value Is Not Empty And _
Target.Offset(0, 3).Value Is Not Empty And _
Target.Offset(0, 4).Value Is Not Empty And _
Target.Offset(0, 5).Value Is Not Empty And _
Target.Offset(0, 6).Value Is Not Empty Then

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Checking when target.values are empty. What am I doing wrong?

If Target.Value Target.Offset(-1, 0).Value and _
application.counta(Target.Resize(1,7)) = 7 then

--
Regards,
Tom Ogilvy


"Barb Reinhardt" wrote:

I have the following code

If Target.Offset(0, 0).Value Target.Offset(-1, 0).Value And _
Target.Value Is Not Empty And _
Target.Offset(0, 1).Value Is Not Empty And _
Target.Offset(0, 2).Value Is Not Empty And _
Target.Offset(0, 3).Value Is Not Empty And _
Target.Offset(0, 4).Value Is Not Empty And _
Target.Offset(0, 5).Value Is Not Empty And _
Target.Offset(0, 6).Value Is Not Empty Then

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking empty cells Diez Excel Programming 1 June 21st 06 08:32 AM
Checking if the TARGET has been deleted Peter Rooney Excel Programming 0 February 1st 06 10:51 AM
checking for empty rows before copying? J_J[_2_] Excel Programming 4 August 2nd 05 01:11 PM
error checking reports a value in the formula is of the wrong dat. [email protected] Excel Worksheet Functions 2 November 7th 04 07:25 PM
Checking if Target is within different ranges Matt Excel Programming 1 July 23rd 04 04:18 PM


All times are GMT +1. The time now is 12:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"