ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Checking when target.values are empty. What am I doing wrong? (https://www.excelbanter.com/excel-programming/373248-checking-when-target-values-empty-what-am-i-doing-wrong.html)

Barb Reinhardt

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


Tom Ogilvy

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



All times are GMT +1. The time now is 03:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com