LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default empty arguments

see http://www.decisionmodels.com/calcsecretsj.htm for a discussion of how
to handle this problem with UDFs
see http://www.decisionmodels.com/calcsecretsc.htm for a discussion of
Excel's calculation process


Charles
___________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"Jorge Suzan" wrote in message
...
While codifying a macro for some user defined functions, it happens that
they
returns an error or in the worst case, excel (2007) stops running at all.
Through debugging I find that one or several arguments passed to VBA by
reference appear to be empty, although they are correctly referred.

Somehow in some cases the function macro seems to be recalled as many
times
as necessary to complete the reading of the missing arguments. I assume
that
this is because the worksheet is recalculated automatically until all
arguments are passed as required by the macro.
It is magic for me how the situation in some cases gets suddenly
stabilized,
and the macro works when all inputs in the worksheet are quiet, but if any
precedent input changes, the application stop running again, requiring to
be
restarted once and once again.

My guess is that I have not been able to decipher completely the excel
recalculation rules, but I have not found anywhere some explanation about
how
this work.

I will highly appreciate any assistance.

Thank“s for help
JS



 
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
empty arguments recalculation Jorge Suzan Excel Worksheet Functions 1 November 30th 09 06:01 PM
Can I pass arguments to my formatted empty spreadsheet file? Paul H[_2_] Excel Discussion (Misc queries) 3 July 25th 09 07:34 PM
Can I pass arguments to my formatted empty spreadsheet file? Paul H[_2_] Excel Programming 3 July 25th 09 07:34 PM
find empty cells in a column then append row that empty cell is in vbnewbie Excel Programming 9 January 29th 09 09:27 AM
Can blank cells created using empty Double-Quotes not be empty?? JohnI in Brisbane Excel Programming 6 September 7th 03 11:22 PM


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