PC Review


Reply
Thread Tools Rate Thread

Determine the Empty row and/or column

 
 
Subodh
Guest
Posts: n/a
 
      17th Mar 2010
I want to determine if a particular row or column is empty using VBA??
I can determine the last used row in the given worksheet. But this is
differenet from determining the last used row.
As other row below the empty row may have data in it.
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      17th Mar 2010
Hi,

Try these 2 which return TRUE if the row or column is empty

RowEmpty = WorksheetFunction.CountA(Rows(1)) = 0

ColumnEmpty = WorksheetFunction.CountA(Columns(1)) = 0

Generally, I find this webpage a great reference for last row etc

http://www.mvps.org/dmcritchie/excel/lastcell.htm
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Subodh" wrote:

> I want to determine if a particular row or column is empty using VBA??
> I can determine the last used row in the given worksheet. But this is
> differenet from determining the last used row.
> As other row below the empty row may have data in it.
> .
>

 
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
find empty cells in a column then append row that empty cell is in vbnewbie Microsoft Excel Programming 9 29th Jan 2009 09:27 AM
Determine if clipboard is empty XP Microsoft Excel Programming 2 2nd Dec 2007 01:34 AM
Delete Rows with Empty Cells with empty column 1 Scott Microsoft Excel Programming 6 2nd Oct 2006 11:57 PM
Determine if listbox is empty george Microsoft Access Form Coding 3 19th Jan 2005 12:17 AM
Determine is a dataset is empty martin Microsoft ASP .NET 3 12th Jan 2004 10:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:47 PM.