Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default Range analisys

ilia wrote:
An in-cell UDF (or any worksheet function for that matter) can only
modify the value of the cell from which it is called. It cannot
modify font, number format, or values of other cells.

If your analysis needs to put results in other cells, you can either
have a UDF that returns an array, or a Sub that populates cells where
you want the analysis.


Or a Sub procedure that calls the UDF that populates the cells.

Alan Beban
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Range analisys

Thank for your messages, in the meantime I have adopted
the change event of the worksheet. The analysis procedure
triggers when the user changes a value in one cell. If the target.value
equals a given string the procedure accomplishes the analysis.

However the procedure fails if the calculation option is set
to automatic since during the runtime the change event is triggered
by other UDF I must use.

Only if I set the calculation to manual I get the success of the
procedure. I have tried also to use the Application.Calculation statement
to set the calc. to manual at the start and to automatic at the end
of the change event, but it seems that they are ignored.

Is there a manner to accomplish the procedure successfully
without setting the calc. to manual?

I use Excel 2003.

Emiliano

"Alan Beban" ha scritto nel messaggio
...
ilia wrote:
An in-cell UDF (or any worksheet function for that matter) can only
modify the value of the cell from which it is called. It cannot
modify font, number format, or values of other cells.

If your analysis needs to put results in other cells, you can either
have a UDF that returns an array, or a Sub that populates cells where
you want the analysis.


Or a Sub procedure that calls the UDF that populates the cells.

Alan Beban



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
How do I enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
calification analisys arturo Excel Programming 0 April 20th 07 04:40 AM
yield analisys tools [email protected] Excel Programming 1 March 10th 07 04:44 PM
yield analisys tools [email protected] Excel Programming 0 March 10th 07 11:07 AM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM


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