A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Custom Function not being auto calculated when cells change..help?



 
 
Thread Tools Display Modes
  #1  
Old March 22nd, 2005, 04:19 PM
Alex Wolff
external usenet poster
 
Posts: n/a
Default Custom Function not being auto calculated when cells change..help?

I created a custom function (See below)
Which takes validated input from 7 other cells parses using MID and
concantenates and returns the result into an 8th cell. WHen I change the
contents of any of the cells the value is not updated in the 8th cell...Even
if I press F9 it wont update it. I have to place the cursor in the 8th cell
and press enter once to get the updated value.

Is there a way to correct this behavior? In my options I have auto
calculate turned on.

  #2  
Old March 22nd, 2005, 04:25 PM
JulieD
external usenet poster
 
Posts: n/a
Default

Hi Alex

the discussion at
http://tinyurl.com/42q34

especially Dick Kusleika's comments might interest you

Cheers
JulieD



"Alex Wolff" wrote in message
...
I created a custom function (See below)
Which takes validated input from 7 other cells parses using MID and
concantenates and returns the result into an 8th cell. WHen I change the
contents of any of the cells the value is not updated in the 8th
cell...Even
if I press F9 it wont update it. I have to place the cursor in the 8th
cell
and press enter once to get the updated value.

Is there a way to correct this behavior? In my options I have auto
calculate turned on.



  #4  
Old March 22nd, 2005, 04:28 PM
Bernd Plumhoff
external usenet poster
 
Posts: n/a
Default

Use application.volatile in your code. See
http://www.sulprobil.com/html/uniqrandint.html for example.

HTH,
Bernd
  #5  
Old March 22nd, 2005, 07:06 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

You didn't show your code, but it's usually best to pass the ranges to the
function.

That way excel knows when you change one of those cells, it's time to
recalculate your UDF.



Alex Wolff wrote:

I created a custom function (See below)
Which takes validated input from 7 other cells parses using MID and
concantenates and returns the result into an 8th cell. WHen I change the
contents of any of the cells the value is not updated in the 8th cell...Even
if I press F9 it wont update it. I have to place the cursor in the 8th cell
and press enter once to get the updated value.

Is there a way to correct this behavior? In my options I have auto
calculate turned on.


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CanShrinkLines Custom Function BertaHill Setting Up & Running Reports 0 March 21st, 2005 08:07 PM
Auto lookup fill in function - Need more help Lam General Discussion 1 August 13th, 2004 11:42 PM
Running Access from network Alan Fisher Using Forms 4 July 3rd, 2004 02:37 AM
MS Word 2000 Page X of Y Auto Text function Jaxon Bridge Setup, Installing & Configuration 2 May 29th, 2004 01:26 AM
MS Word 2000 Page X of Y Auto Text function Jaxon Bridge General Discussions 2 May 29th, 2004 01:26 AM


All times are GMT +1. The time now is 09:52 PM.


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