PC Review


Reply
Thread Tools Rate Thread

Determining if certain row # is blank

 
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      24th Sep 2007
I would greatly appreciate any help in writing the necessary line(s) of code
to determine if a given row (e.g., 8) in the active workbook is completely
blank.
Thanks,
Bob
 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      24th Sep 2007

this should return a zero if the row is blank:

application.counta(rows(8))
--


Gary


"Bob" <(E-Mail Removed)> wrote in message
news:F4CF998C-735E-44A6-984C-(E-Mail Removed)...
>I would greatly appreciate any help in writing the necessary line(s) of code
> to determine if a given row (e.g., 8) in the active workbook is completely
> blank.
> Thanks,
> Bob



 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      24th Sep 2007
One way:

Dim bLine8IsBlank As Boolean
bLine8IsBlank = Application.CountA(ActiveSheet.Rows(8)) = 0

In article <F4CF998C-735E-44A6-984C-(E-Mail Removed)>,
Bob <(E-Mail Removed)> wrote:

> I would greatly appreciate any help in writing the necessary line(s) of code
> to determine if a given row (e.g., 8) in the active workbook is completely
> blank.
> Thanks,
> Bob

 
Reply With Quote
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      24th Sep 2007
JE - Thanks!


"JE McGimpsey" wrote:

> One way:
>
> Dim bLine8IsBlank As Boolean
> bLine8IsBlank = Application.CountA(ActiveSheet.Rows(8)) = 0
>
> In article <F4CF998C-735E-44A6-984C-(E-Mail Removed)>,
> Bob <(E-Mail Removed)> wrote:
>
> > I would greatly appreciate any help in writing the necessary line(s) of code
> > to determine if a given row (e.g., 8) in the active workbook is completely
> > blank.
> > Thanks,
> > Bob

>

 
Reply With Quote
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      24th Sep 2007
Gary - Thanks!

"Gary Keramidas" wrote:

>
> this should return a zero if the row is blank:
>
> application.counta(rows(8))
> --
>
>
> Gary
>
>
> "Bob" <(E-Mail Removed)> wrote in message
> news:F4CF998C-735E-44A6-984C-(E-Mail Removed)...
> >I would greatly appreciate any help in writing the necessary line(s) of code
> > to determine if a given row (e.g., 8) in the active workbook is completely
> > blank.
> > Thanks,
> > Bob

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
determining if users Password is blank or standard Martin Microsoft Access Security 2 8th Aug 2009 03:59 PM
Determining if a user has a non-blank password =?Utf-8?B?Q2h1Y2sgVw==?= Microsoft Access Security 2 6th Aug 2009 03:48 AM
Start Cell B1 then find first blank cell, insert subtotal, next non blank, then next blank, sutotal cells in between......... amorrison2006@googlemail.com Microsoft Excel Programming 2 7th Jun 2007 09:27 PM
determining whether all cells in a row are blank rub Microsoft Excel Programming 2 28th Nov 2006 07:02 PM
Blank Sender, Blank Subject, Blank Body =?Utf-8?B?c2luMTQ3MA==?= Microsoft Outlook Discussion 2 4th Nov 2005 01:02 PM


Features
 

Advertising
 

Newsgroups
 


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