ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF Statements (https://www.excelbanter.com/excel-worksheet-functions/30739-if-statements.html)

Rick Scott via OfficeKB.com

IF Statements
 
I hope someone can give a direction with this problem, even though it may be
rather simple I just can't get my mind around it. I want to create a IF
Statement similar to (=if(C1750.00,goto I17). I need for the cursor to jump
to I17 if C17 is greater than 50.00. I need for the cursor to go to this
cell so it will force people to enter an explanation in I17 to explain why
C17 is over 50.00. I know this may sound confusing, but I find it harder to
explain than to try and figure out the formula to use to make it perform this
function.

Thanks,
Rick Scott

--
Message posted via http://www.officekb.com

Bob Phillips

You can't do that with a formula, but you can with VBA. Any use?

--
HTH

Bob Phillips

"Rick Scott via OfficeKB.com" wrote in message
...
I hope someone can give a direction with this problem, even though it may

be
rather simple I just can't get my mind around it. I want to create a IF
Statement similar to (=if(C1750.00,goto I17). I need for the cursor to

jump
to I17 if C17 is greater than 50.00. I need for the cursor to go to this
cell so it will force people to enter an explanation in I17 to explain why
C17 is over 50.00. I know this may sound confusing, but I find it harder

to
explain than to try and figure out the formula to use to make it perform

this
function.

Thanks,
Rick Scott

--
Message posted via http://www.officekb.com




Rick Scott via OfficeKB.com

Bob,
Do you know if there is a VBA that is somewhat written that would perform
this? Even though I've worked with VBA I also know that if you are off by
one statement it won't work.

Thanks,
Rick

--
Message posted via http://www.officekb.com

Bob Phillips

Rick,

I'll have a go at some later today.

--
HTH

Bob Phillips

"Rick Scott via OfficeKB.com" wrote in message
...
Bob,
Do you know if there is a VBA that is somewhat written that would perform
this? Even though I've worked with VBA I also know that if you are off by
one statement it won't work.

Thanks,
Rick

--
Message posted via http://www.officekb.com




Bob Phillips

Option Explicit

Private Sub Worksheet_Calculate()
If Range("C17") 500 Then
Range("I17").Select
End If
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

"Bob Phillips" wrote in message
...
Rick,

I'll have a go at some later today.

--
HTH

Bob Phillips

"Rick Scott via OfficeKB.com" wrote in message
...
Bob,
Do you know if there is a VBA that is somewhat written that would

perform
this? Even though I've worked with VBA I also know that if you are off

by
one statement it won't work.

Thanks,
Rick

--
Message posted via http://www.officekb.com






Rick Scott via OfficeKB.com

Bob,
This work, thanks I appreciate you help on this.

Rick

--
Message posted via http://www.officekb.com


All times are GMT +1. The time now is 07:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com