PC Review


Reply
Thread Tools Rate Thread

Is column below title row blank

 
 
xp
Guest
Posts: n/a
 
      22nd Jul 2009
Using Office 2007;

I need a function that would select the used range of a column below a
specified number of title rows and return true if this area is blank (i.e. no
entries of any kind apart from the title row(s).)

For example:

Public Function IsColumnBlank(argTitleRows as Long, argColNum as Long)
'select area below title rows specified
'determine if this area is blank
'return true if blank; false if not blank
End Function

Thanks for any help you may provide.
 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      22nd Jul 2009
I think this is what you need:

Public Function IsColumnBlank(argTitleRows As Long, argColNum As Long)
As Boolean
Application.Volatile
LastDataRow = Cells(Rows.Count, argColNum).End(xlUp).Row
If LastDataRow = argTitleRows Then
IsColumnBlank = True
End If
End Function

Regards,
Per

On 22 Jul., 16:19, xp <x...@discussions.microsoft.com> wrote:
> Using Office 2007;
>
> I need a function that would select the used range of a column below a
> specified number of title rows and return true if this area is blank (i.e. no
> entries of any kind apart from the title row(s).)
>
> For example:
>
> Public Function IsColumnBlank(argTitleRows as Long, argColNum as Long)
> 'select area below title rows specified
> 'determine if this area is blank
> 'return true if blank; false if not blank
> End Function
>
> Thanks for any help you may provide.


 
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
Insert Column after specific text title the new column and add for David Microsoft Excel Misc 5 2nd Oct 2009 04:03 PM
Named range=Column title,comumn title in cellB6 use B6in equation =?Utf-8?B?R3JhaGFt?= Microsoft Excel Misc 2 21st Jul 2006 10:03 AM
Sumif based on column A and title of another column =?Utf-8?B?UnVzdHk=?= Microsoft Excel Misc 7 19th Oct 2005 12:28 AM
Blank doc except for title JJoe Microsoft Word Document Management 2 21st May 2005 09:14 PM
How do I get the column index of a datagrid from the column title? Moondog Microsoft VB .NET 8 23rd Sep 2004 02:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 AM.