Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default calculate now for user defined functions?

Hi, if I manually or programmatically paste data into 2+ cells with user
defined functions only the first cell's function is executed. Is there some
sort of equivalent to Calculate or some other way to force this? I have
found that if I manually cut the formula from the cell and paste it back
into the same cell, it executes, but that seems hacky and burdensome.

Thanks,
Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default calculate now for user defined functions?

Make your first line in the UDF

Application.Volatile

This will for the UDF to recalucate with each calculation of the sheet.
--
HTH...

Jim Thomlinson


"Mike" wrote:

Hi, if I manually or programmatically paste data into 2+ cells with user
defined functions only the first cell's function is executed. Is there some
sort of equivalent to Calculate or some other way to force this? I have
found that if I manually cut the formula from the cell and paste it back
into the same cell, it executes, but that seems hacky and burdensome.

Thanks,
Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default calculate now for user defined functions?

Thank you Jim. I tried that, but have some sort of concurrency/infinite loop
issues remaining. Are their known problems with putting UDFs in the
worksheet_change event?
"Jim Thomlinson" wrote in
message ...
Make your first line in the UDF

Application.Volatile

This will for the UDF to recalucate with each calculation of the sheet.
--
HTH...

Jim Thomlinson


"Mike" wrote:

Hi, if I manually or programmatically paste data into 2+ cells with user
defined functions only the first cell's function is executed. Is there
some
sort of equivalent to Calculate or some other way to force this? I have
found that if I manually cut the formula from the cell and paste it back
into the same cell, it executes, but that seems hacky and burdensome.

Thanks,
Mike





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 349
Default calculate now for user defined functions?

Hi,

I faced the same problem that deleting / pasting cell in Excel will fire the
Calculate event to execute again & again (infinite loop)...

Is it a known bug of UDF and Calculate event?

Thanks,
Peter

"me" wrote:

Thank you Jim. I tried that, but have some sort of concurrency/infinite loop
issues remaining. Are their known problems with putting UDFs in the
worksheet_change event?
"Jim Thomlinson" wrote in
message ...
Make your first line in the UDF

Application.Volatile

This will for the UDF to recalucate with each calculation of the sheet.
--
HTH...

Jim Thomlinson


"Mike" wrote:

Hi, if I manually or programmatically paste data into 2+ cells with user
defined functions only the first cell's function is executed. Is there
some
sort of equivalent to Calculate or some other way to force this? I have
found that if I manually cut the formula from the cell and paste it back
into the same cell, it executes, but that seems hacky and burdensome.

Thanks,
Mike






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
User defined functions without using VBA. [email protected] Excel Worksheet Functions 0 June 13th 06 05:44 PM
User Defined Functions Mike McLellan Excel Worksheet Functions 2 May 4th 06 10:56 AM
User Defined Functions - Help Text - Make it Easy for the User Andibevan[_2_] Excel Programming 4 March 17th 05 09:51 AM
user defined functions docmurali Excel Programming 2 May 22nd 04 07:12 PM
excel functions and User defined functions Kanan Excel Programming 4 May 20th 04 11:21 PM


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