Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TOM TOM is offline
external usenet poster
 
Posts: 47
Default Circular Reference Conundrum

Hi All

Here is my puzzle

I have the following formula in cell BA20 on to seperate page

= if(C4="A1",V3,BA20

this creates the circular reference

the value in the cell could be anything between 1 to 10,000

in code I look to see which one is the larger of the two and add 1 to it ,which in turn gets placed into cell V3

What I am looking for is how can I leave a cells value alone until a certain criteria happens,
like Cell C4="A1" with out getting a circular reference

Below is a copy of the code I am using to look to see which value is greater then add 1 to it

If strce = "J2" The

Sheets("4 Cavity FSV Set-Up Sheet").Activat
intfsvj2 = Range("BG9"
Sheets("4 Cavity Set-Up Sheet").Activat
intsemij2 = Range("BL20"

If intfsvj2 intsemij2 The
intruncount = intfsvj2 +
Els
intruncount = intsemij2 +
'End I

If intfsv = 1 The
Sheets("4 Cavity FSV Set-Up Sheet").Activat
Range("V3") = intruncoun
Els
Sheets("4 Cavity Set-Up Sheet").Activat
Range("X6") = intruncoun
'End I
End I
End I
End I

I appreciate any help that may be provide

Tom
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Circular Reference Conundrum

Hi
if I understood you correctly you'll need an event procedure for this
(e.g. use the worksheet_change event). see
http://www.cpearson.com/excel/events.htm

--
Regards
Frank Kabel
Frankfurt, Germany


Tom wrote:
Hi All,

Here is my puzzle.

I have the following formula in cell BA20 on to seperate pages

= if(C4="A1",V3,BA20)

this creates the circular reference.

the value in the cell could be anything between 1 to 10,000.

in code I look to see which one is the larger of the two and add 1 to
it ,which in turn gets placed into cell V3.

What I am looking for is how can I leave a cells value alone until a
certain criteria happens,
like Cell C4="A1" with out getting a circular reference.

Below is a copy of the code I am using to look to see which value is
greater then add 1 to it.

If strce = "J2" Then

Sheets("4 Cavity FSV Set-Up Sheet").Activate
intfsvj2 = Range("BG9")
Sheets("4 Cavity Set-Up Sheet").Activate
intsemij2 = Range("BL20")

If intfsvj2 intsemij2 Then
intruncount = intfsvj2 + 1
Else
intruncount = intsemij2 + 1
'End If

If intfsv = 1 Then
Sheets("4 Cavity FSV Set-Up Sheet").Activate
Range("V3") = intruncount
Else
Sheets("4 Cavity Set-Up Sheet").Activate
Range("X6") = intruncount
'End If
End If
End If
End If

I appreciate any help that may be provided

Tom


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
Circular Reference revdeacon Excel Discussion (Misc queries) 1 April 8th 08 07:17 PM
circular reference dusty Excel Discussion (Misc queries) 1 November 15th 07 06:56 PM
Circular Reference nastech Excel Discussion (Misc queries) 1 April 27th 06 12:54 AM
how to: circular reference Tim Excel Worksheet Functions 3 March 11th 05 01:51 PM
how to: circular reference Tim Excel Worksheet Functions 0 March 11th 05 12:37 AM


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