arrow object

reddcannon

Board Regular
Joined
Aug 11, 2011
Messages
118
I have an arrow that I got by going to insert/shapes etc. But I do not want it to show unless cell M5 > 0, can someone advise
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to the Board!

You can probably do what you want with VBA, but why not use Conditional Formatting with the Arrow Icon Set?

If you want to stick with your arrow, then how is M5 changing? Via formula or manually?
 
Upvote 0
also it needs to change when that cell becomes greater >0 by way of entries in other cells

So M5 is changing as the result of a formula?

If so, then something like this should work:

<font face=Calibri><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_Calculate()<br>    <SPAN style="color:#00007F">If</SPAN> Range("M5").Value > 0 <SPAN style="color:#00007F">Then</SPAN><br>        Me.Shapes("Arrow1").Visible = <SPAN style="color:#00007F">True</SPAN><br>    <SPAN style="color:#00007F">Else</SPAN><br>        Me.Shapes("Arrow1").Visible = <SPAN style="color:#00007F">False</SPAN><br>    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>

HTH,
 
Last edited:
Upvote 0
yes, as a person enters qty in column b in various places the sum of M5 changes. I just said Greater than 0, it can be where M5 is greater then 100 etc. It's purpose is to make sure the person entering the data notices to tell the person on the phone that they are entitled to a freight allowance because the order reached a certain amount
 
Upvote 0
It's purpose is to make sure the person entering the data notices to tell the person on the phone that they are entitled to a freight allowance because the order reached a certain amount

You'd probably want to use a Message Box instead then. No one's going to miss that. ;)
 
Upvote 0
your right, if I knew how to do that, I am new to this

The good news is it's remarkably easy:

<font face=Calibri><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_Calculate()<br>    <SPAN style="color:#00007F">If</SPAN> Range("M5").Value > 0 <SPAN style="color:#00007F">Then</SPAN><br>        MsgBox "Your customer is eligible for a shipping discount!", vbInformation + vbOKOnly, "Shipping DIscount Achieved"<br>    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Upvote 0
it works, however it pops up even though the value of M5 is nothing. There is a calculation in M5, maybe that is the problem here is what is in M5 =IF(B5="n","",IF(B5="m","",IF(M2<1000,"",M2*5%)))
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top