LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Test for range value

Thanks,

What my intention is, is to require the user to use the next row. Data is
placed on the worksheet by the UserForm "Lost_And_Found" I just want to
make sure that when the UserForm only shows if the row above has data. So if
the select C10 (to use your example) then there must be data in cell E9.


"Mike H" wrote in message
...
and if the actiice cell (target) was (say) C10 where is rng(1,5) in
relation
to that?

"Patrick C. Simonds" wrote:

I meant say that I want it to check the rng(1, 5) of the row above.


"Patrick C. Simonds" wrote in message
...
Is there a way to have this check the rng(1, 5) for a value.

If the value is blank I need to fire a msgbox "Sorry but you have
clicked
to far down on the worksheet. Please select the next blank row."

If the value is not blank then show the UserForm.



Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

If bSELCTIONCHANGE Then

If Not Application.Intersect(Target, Range("B3:M5000")) Is Nothing
Then
Lost_And_Found.Show


End If

End Sub






 
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 For BLANK Range RayportingMonkey Excel Programming 3 September 5th 07 08:24 PM
Test within a range? JC Excel Worksheet Functions 3 May 25th 07 03:41 AM
range as test mcolson Excel Programming 4 February 8th 07 10:31 AM
Can't test Range for Nothing Peter Chatterton[_4_] Excel Programming 3 June 16th 06 09:22 PM
== How to test if a range var contains nothing hcova[_2_] Excel Programming 3 October 25th 04 10:08 PM


All times are GMT +1. The time now is 06:35 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"