#1   Report Post  
Monty
 
Posts: n/a
Default formula or code

if i wanted a message to appear on screen (saying please issue prompt payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.
thanks.


  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

Monty

If you can set up a formula next to the cell then you could use an IF
function, like

=IF(CellWith15In<15,"","Issue Prompt Payment Letter")

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Monty" wrote in message
...
if i wanted a message to appear on screen (saying please issue prompt
payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.
thanks.




  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(G415,"Please Issue Prompt Payment Letter", "")

If you want a message box instead, use

=IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

If you're unfamiliar with UDFs, see David McRitchie's "Getting Started
with Macros and User Defined Functions":

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article ,
"Monty" wrote:

if i wanted a message to appear on screen (saying please issue prompt payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.

  #4   Report Post  
Monty
 
Posts: n/a
Default

Thanks for this
but can i ask you another point.

If i had the followinig formula in box G4 =DAYS360(E34,F34)and i wanted to
add your message box formula =IF(G415,PromptPayment(),"")to it. how would i
do this.
thanks once again.

"JE McGimpsey" wrote:

One way:

=IF(G415,"Please Issue Prompt Payment Letter", "")

If you want a message box instead, use

=IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

If you're unfamiliar with UDFs, see David McRitchie's "Getting Started
with Macros and User Defined Functions":

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article ,
"Monty" wrote:

if i wanted a message to appear on screen (saying please issue prompt payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.


  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(DAYS360(E34,F34)15,PromptPayment(),DAYS360(E3 4,F34))




In article ,
"Monty" wrote:

Thanks for this
but can i ask you another point.

If i had the followinig formula in box G4 =DAYS360(E34,F34)and i wanted to
add your message box formula =IF(G415,PromptPayment(),"")to it. how would i
do this.
thanks once again.



  #6   Report Post  
 
Posts: n/a
Default

Hi

me again

When i put any of these formulas in it comes up with an
circular reference error?? Any ideas.

thanks

-----Original Message-----
One way:

=IF(G415,"Please Issue Prompt Payment Letter", "")

If you want a message box instead, use

=IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

If you're unfamiliar with UDFs, see David

McRitchie's "Getting Started
with Macros and User Defined Functions":

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article <010CA17D-1E0C-460D-A366-

,
"Monty" wrote:

if i wanted a message to appear on screen (saying

please issue prompt payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.

.

  #7   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Put them in a cell other than the one you're monitoring...

If G4 has an existing calculation, say,

=SUM(G1:G3)

and you want the message in the cell, use

=IF(SUM(G1:G3)15,"Please issue Prompt Payment Letter", SUM(G1:G3))

If you want a message box, the easiest thing to do is use the
Worksheet_Calculate() event. Put this in your worksheet code module
(right-click the worksheet tab and choose View Code):

Private Sub Worksheet_Calculate()
With Range("G4")
If IsNumeric(.Value) Then _
If .Value 15 Then _
MsgBox "Please Issue Prompt Payment Letter"
End With
End Sub

This will automatically monitor G4 every time the sheet calculates

In article ,
wrote:

When i put any of these formulas in it comes up with an
circular reference error?? Any ideas.

  #8   Report Post  
Monty
 
Posts: n/a
Default

Sorry

If i put this formula =IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

it comes up with the following error #NAME?

can anyone please help


" wrote:

Hi

me again

When i put any of these formulas in it comes up with an
circular reference error?? Any ideas.

thanks

-----Original Message-----
One way:

=IF(G415,"Please Issue Prompt Payment Letter", "")

If you want a message box instead, use

=IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

If you're unfamiliar with UDFs, see David

McRitchie's "Getting Started
with Macros and User Defined Functions":

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article <010CA17D-1E0C-460D-A366-

,
"Monty" wrote:

if i wanted a message to appear on screen (saying

please issue prompt payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.

.


  #9   Report Post  
JE McGimpsey
 
Posts: n/a
Default

If PromptPayment is stored in the same workbook, or an add-in, it should
be in a regular code module, not a workbook or worksheet class module
(see

http://www.mcgimpsey.com/excel/modules.html

for more).

If PromptPayment() is stored in another workbook (like Personal.xls)
that needs to be referenced, e.g.:

=IF(G415,Personal.xls!PromptPayment(),"")

In article ,
"Monty" wrote:

If i put this formula =IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

it comes up with the following error #NAME?

  #10   Report Post  
 
Posts: n/a
Default

Thanks

For this
I still have one problem with this.
it works perfectly when you input the relevant info and
the days are over 15 days it will come up with a message
box. The problem is when you re-open this workbook the
message box appears before it opens! how can i stop this
from happening.

thanks.

Mark
-----Original Message-----
One way:

=IF(G415,"Please Issue Prompt Payment Letter", "")

If you want a message box instead, use

=IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

If you're unfamiliar with UDFs, see David

McRitchie's "Getting Started
with Macros and User Defined Functions":

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article <010CA17D-1E0C-460D-A366-

,
"Monty" wrote:

if i wanted a message to appear on screen (saying

please issue prompt payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.

.



  #11   Report Post  
 
Posts: n/a
Default

Thanks

For this
I still have one problem with this.
it works perfectly when you input the relevant info and
the days are over 15 days it will come up with a message
box. The problem is when you re-open this workbook the
message box appears before it opens! how can i stop this
from happening.

thanks.

Mark
-----Original Message-----
One way:

=IF(G415,"Please Issue Prompt Payment Letter", "")

If you want a message box instead, use

=IF(G415,PromptPayment(),"")

with this UDF in a regular code module:

Public Function PromptPayment()
MsgBox "Please issue Prompt Payment Letter"
End Function

If you're unfamiliar with UDFs, see David

McRitchie's "Getting Started
with Macros and User Defined Functions":

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article <010CA17D-1E0C-460D-A366-

,
"Monty" wrote:

if i wanted a message to appear on screen (saying

please issue prompt payment
letter)if a certain number in a cell was over 15.
how would i go about this.
i am a novice at this any help please.

.

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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 5 October 30th 04 12:35 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 1 October 29th 04 07:05 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 1 October 29th 04 06:07 PM


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