Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Cells w/ user defined function do not auto update

I have an excel 2007 file with worksheets for each month. The Feb-Dec sheets
each have cells that contain the formula "=B25+PrevSheet(F25)" to accumulate
the sum of corresponding cells of earlier month worksheets using a function
"PrevSheet(x)" that I wrote to pick up the specified cell value from the
previous month worksheet. Each worksheet has a fairly large number of cells
that use this formula.

When I make changes in earlier month sheets the following month sheets do
not automatically update their cumulative values. Clicking Recalculate does
not perform and update either. The only way I seem to be able to update
these cum cells is to select each one, click up in the formula bar and then
press enter. This is a very tedious process.

How can I get the cells to update automatically?

Thank you for your help, John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Cells w/ user defined function do not auto update

If you add Application.Volatile at the start of your UDF, you will only have
to force the recalculation once, all the others will then also update.

--
__________________________________
HTH

Bob

"John" wrote in message
...
I have an excel 2007 file with worksheets for each month. The Feb-Dec
sheets
each have cells that contain the formula "=B25+PrevSheet(F25)" to
accumulate
the sum of corresponding cells of earlier month worksheets using a
function
"PrevSheet(x)" that I wrote to pick up the specified cell value from the
previous month worksheet. Each worksheet has a fairly large number of
cells
that use this formula.

When I make changes in earlier month sheets the following month sheets do
not automatically update their cumulative values. Clicking Recalculate
does
not perform and update either. The only way I seem to be able to update
these cum cells is to select each one, click up in the formula bar and
then
press enter. This is a very tedious process.

How can I get the cells to update automatically?

Thank you for your help, John



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Cells w/ user defined function do not auto update

That took care for it. Thx so much Bob.

"Bob Phillips" wrote:

If you add Application.Volatile at the start of your UDF, you will only have
to force the recalculation once, all the others will then also update.

--
__________________________________
HTH

Bob

"John" wrote in message
...
I have an excel 2007 file with worksheets for each month. The Feb-Dec
sheets
each have cells that contain the formula "=B25+PrevSheet(F25)" to
accumulate
the sum of corresponding cells of earlier month worksheets using a
function
"PrevSheet(x)" that I wrote to pick up the specified cell value from the
previous month worksheet. Each worksheet has a fairly large number of
cells
that use this formula.

When I make changes in earlier month sheets the following month sheets do
not automatically update their cumulative values. Clicking Recalculate
does
not perform and update either. The only way I seem to be able to update
these cum cells is to select each one, click up in the formula bar and
then
press enter. This is a very tedious process.

How can I get the cells to update automatically?

Thank you for your help, John




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
Paramters or Arugment Auto-Label for User-Defined Function [email protected] Excel Worksheet Functions 5 April 22nd 08 06:21 PM
User Defined function - Help makulski Excel Worksheet Functions 8 February 27th 08 09:44 PM
user defined function Pete_T Excel Worksheet Functions 1 December 1st 07 01:03 AM
user defined function Brian Rogge Excel Worksheet Functions 5 May 23rd 05 06:21 PM
User-defined function PierreL Excel Worksheet Functions 4 December 23rd 04 09:16 AM


All times are GMT +1. The time now is 12:31 PM.

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"