Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Can you test for a range (Q16:19) any cell is ISBLANK

I'm running a piece of code that loop and that basically writes a column of 4
cells over itself to permanently change the data created by other
calculations to be static. So as an example on the first pass its going to
write over Q16:19.

ActiveSheet.Range("Q" & j + 5 & ":Q" & j + 8).Value = ActiveSheet.Range("Q"
& j + 5 & ":Q" & j + 8).Value

My question is Id like to test before writing over this data is all 4 cells
have data (or that none are left blank). Is there a single command to test a
rage of cells (Q16:19) to all be non-null.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Can you test for a range (Q16:19) any cell is ISBLANK

Hi CRayF,

Is there a single command to test a
rage of cells (Q16:19) to all be non-null.



If Application.CountA(Range("Q16:Q19")) = _
Range("Q16:Q19").Count Then 'No blanks

---
Regards,
Norman



"CRayF" wrote in message
...
I'm running a piece of code that loop and that basically writes a column
of 4
cells over itself to permanently change the data created by other
calculations to be static. So as an example on the first pass it's going
to
write over Q16:19.

ActiveSheet.Range("Q" & j + 5 & ":Q" & j + 8).Value =
ActiveSheet.Range("Q"
& j + 5 & ":Q" & j + 8).Value

My question is I'd like to test before writing over this data is all 4
cells
have data (or that none are left blank). Is there a single command to test
a
rage of cells (Q16:19) to all be non-null.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Can you test for a range (Q16:19) any cell is ISBLANK

thanks
Reply
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
Test if CELL is in RANGE Vaughan Excel Worksheet Functions 12 November 19th 06 02:48 PM
test if column isblank Spike Excel Worksheet Functions 3 November 29th 05 02:06 PM
logical test for each and every cell in range matt Excel Discussion (Misc queries) 4 September 16th 05 06:11 AM
Test to see if a cell is within a range Tim Coddington Excel Programming 3 November 30th 04 02:58 PM
Test if Cell is within Range (name) goepf[_6_] Excel Programming 2 December 3rd 03 03:26 PM


All times are GMT +1. The time now is 06:47 AM.

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"