LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Phil
 
Posts: n/a
Default Check for empty range in vba

Hi all,
I have a workbook with a number of worksheets that contain data about
staff development objectives. Each person has their own worksheet and
I've developed a macro that pulls all the data into one summary sheet.

Because the number of rows of data in each sheet will vary from month
to month, there is a dynamic range name for each and the macro selects
the data for the summary using that.

All works fine, except for occasions when there is no data in the
dynamic range, for instance when a person has no objectives for that
month. In this case the macro falls over because the range is empty.

What I need to know (and I apologise for my limited VBA knowledge
here!), is how to check to see if the range is empty and if so, to
ignore this range and move on to the next.

It seems simple enough, and I understand just about enough to believe
it probably needs some kind of loop and a conditional
formula..........but I don't understand enough to make it happen!

Any help would be most gratefully received

 
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
How do I check repeating sets of number in a range Tshidiso Excel Worksheet Functions 1 September 2nd 05 11:02 AM
Check to see if cell data is within a range mwrfsu Excel Worksheet Functions 4 August 22nd 05 10:40 PM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM
can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 1 April 7th 05 04:31 PM
How can I check if data in an external data range is changed afte. Ruud Excel Worksheet Functions 0 January 7th 05 12:15 PM


All times are GMT +1. The time now is 08:17 PM.

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

About Us

"It's about Microsoft Excel"