Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 349
Default Self Defined Function Doesn't Update Automatically

Hi Everyone

I have defined a self-written function within a module on a spreadsheet. The
logic works fine and the function returns the result I want when the entry

=functioname(parameters) is place in a cell.

However, if I change one of the parameter values in the spreadsheet itself,
the function does not automatically update the content of the cell in which
the function call is made. If I move the cursor to the cell, hit F2 and then
enter, it updates fine.

I have added a simple =SUM() function to the same sheet and any changes to
the source values for the SUM function update just fine.

I'm confused ... anyone have any ideas why the self-defined function isn't
udpating? I have checked the options sheet and it is set to Automatic
calculation and I don't know where else to look.

Thanks in advance for any replies.

Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Self Defined Function Doesn't Update Automatically

Peter,

Can you show us the function?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Peter" wrote in message
...
Hi Everyone

I have defined a self-written function within a module on a spreadsheet.

The
logic works fine and the function returns the result I want when the entry

=functioname(parameters) is place in a cell.

However, if I change one of the parameter values in the spreadsheet

itself,
the function does not automatically update the content of the cell in

which
the function call is made. If I move the cursor to the cell, hit F2 and

then
enter, it updates fine.

I have added a simple =SUM() function to the same sheet and any changes to
the source values for the SUM function update just fine.

I'm confused ... anyone have any ideas why the self-defined function isn't
udpating? I have checked the options sheet and it is set to Automatic
calculation and I don't know where else to look.

Thanks in advance for any replies.

Peter



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Self Defined Function Doesn't Update Automatically

Put the line

Application.Volatile


inside your function

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
Why doesn't excel count function update automatically? nlb1 Excel Discussion (Misc queries) 1 January 6th 10 03:33 AM
Update defined name ranges after sort JFU Excel Discussion (Misc queries) 3 November 20th 09 09:50 PM
Update one worksheet tab to automatically update all other tabs? shoechic1 Excel Worksheet Functions 1 May 24th 09 03:55 PM
Cells w/ user defined function do not auto update John Excel Worksheet Functions 2 September 14th 08 07:06 PM
automaitcally update external defined names? Chris Excel Discussion (Misc queries) 2 January 9th 08 03:41 AM


All times are GMT +1. The time now is 10:30 AM.

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

About Us

"It's about Microsoft Excel"