Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default MsgBox Question

There are a couple of options.

1. Check for changes to precidents of the formula
if (target.address = "$G$39" or target.address = "$D$39") _
and range("J39") < .17 then

2. Since your code is very short you could chnge to a selection change event
and just check the value of J39...
--
HTH...

Jim Thomlinson


"ChrisM" wrote:

Hi All,

I would like a message box to appear if the contents of a certian cell is
less than 0.17.

The code I wrote to do this is given below:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target(1), Me.Range("j39")) Is Nothing Then Exit Sub
If Target(1).Value < 0.17 Then
MsgBox ("Error - Minimum Circ must be 17%. Call for Quote")
End If
End Sub

This works if I manually enter the value into cell j39, but I would like
cell J39 to update via a formula. For example, the formula in cell J39 is:
=g39/d39.

A series of check boxes and drop down boxes are used to select the
quantities in cells G39 and J39.

Any insights would be greatly appreciated.

Thank you.

Chris

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
msgbox Question dok112[_53_] Excel Programming 2 October 25th 05 11:59 PM
MsgBox question Ken Loomis Excel Programming 5 July 5th 05 06:56 PM
MsgBox question... RPIJG[_34_] Excel Programming 1 June 8th 04 09:59 PM
MsgBox Question - HELP! Ann Excel Programming 1 February 4th 04 08:52 PM
Msgbox question Pancho Excel Programming 4 October 23rd 03 05:36 PM


All times are GMT +1. The time now is 03:45 PM.

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

About Us

"It's about Microsoft Excel"