Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
xlcFormula
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chezky  
View profile  
 More options May 17 2011, 10:56 pm
From: Chezky <chezkyr...@gmail.com>
Date: Tue, 17 May 2011 19:56:50 -0700 (PDT)
Local: Tues, May 17 2011 10:56 pm
Subject: xlcFormula
Hi,

I have a method in my xll that sets up cells to call a UDF, using
XlCall.Excel(XlCall.xlcFormula, ...), and they populate cells
correctly. The problem is that they UDFs aren't actually called until
I trigger it, by hitting F9, or by hitting enter in any cell. Is there
a way to programatically do this?  I've tried following up these
xlcFormula calls with a call to XlCall.Excel(XlCall.xlcCalculateNow);,
but this didn't seem to do the trick.

Thanks,
Chezky


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chezky  
View profile  
 More options May 18 2011, 4:51 pm
From: Chezky <chezkyr...@gmail.com>
Date: Wed, 18 May 2011 13:51:20 -0700 (PDT)
Local: Wed, May 18 2011 4:51 pm
Subject: Re: xlcFormula
Another related question: How can I reference a cell from within the
formula I pass as a reference?  Right now, all I can do is pass in
strings, but if I try to pass in a cell reference, I get an error.
For example, if my formula is:
"=Function(\""+variable+"\"")"
but it fails if I try:
"=Function("+A2+")"

Thanks,
Chezky

On May 17, 10:56 pm, Chezky <chezkyr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Govert van Drimmelen  
View profile  
 More options May 18 2011, 5:22 pm
From: Govert van Drimmelen <gov...@icon.co.za>
Date: Wed, 18 May 2011 14:22:27 -0700 (PDT)
Local: Wed, May 18 2011 5:22 pm
Subject: Re: xlcFormula
Hi Chezky,

I think you need to use R1C1-style references when setting the
formula. So instead of A2, you put in "=Function(R2C1)".

Maybe you can convert from A1-style to R1C1-style like this:
   formulaR1C1 = (string)XlCall.Excel(XlCall.xlfFormulaConvert,
formula, true, false, ExcelMissing.Value, firstCell);
where "firstCell" is a reference from which the offsets are taken.

About your original recalc question - if you make a small self-
contained .dna file with an example of what you are trying to do, I
could try to have a closer look.

Regards,
Govert

On May 18, 10:51 pm, Chezky <chezkyr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikee  
View profile   Translate to Translated (View Original)
 More options Jun 28 2012, 11:20 pm
From: Nikee <ocean.ind...@gmail.com>
Date: Thu, 28 Jun 2012 20:20:23 -0700 (PDT)
Local: Thurs, Jun 28 2012 11:20 pm
Subject: Re: xlcFormula

Chesky

Were you able to fine answer for this recalculation ?

In Excel it does not recalculate even with F9; i have to go to formula bar
and then hit enter or change dependant cells; then and then only it
recalculates for me...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick O'Beirne  
View profile   Translate to Translated (View Original)
 More options Jun 29 2012, 3:21 am
From: "Patrick O'Beirne" <obeirne....@gmail.com>
Date: Fri, 29 Jun 2012 08:21:38 +0100
Local: Fri, Jun 29 2012 3:21 am
Subject: Re: [ExcelDna] Re: xlcFormula

Does "Calculate" not go away in the status bar?

Excel will not recalculate if there are too many dependencies. I forget
how many, 65000 at a guess.
Check Charles Williams' FastExcel site  decisionmodels.com

Try Ctrl+Alt+F9 to recalc all
or Ctrl+Alt+Shift+F9 to rebuild calc chain

On 29/06/2012 04:20, Nikee wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikee  
View profile   Translate to Translated (View Original)
 More options Jun 29 2012, 9:10 am
From: Nikee <ocean.ind...@gmail.com>
Date: Fri, 29 Jun 2012 06:10:36 -0700 (PDT)
Local: Fri, Jun 29 2012 9:10 am
Subject: Re: [ExcelDna] Re: xlcFormula

I have ExcelDna -  ExcelFunction which i want to call (i.e. recalculate) on
F9


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Govert van Drimmelen  
View profile   Translate to Translated (View Original)
 More options Jun 29 2012, 9:18 am
From: Govert van Drimmelen <gov...@icon.co.za>
Date: Fri, 29 Jun 2012 06:18:36 -0700 (PDT)
Local: Fri, Jun 29 2012 9:18 am
Subject: Re: xlcFormula
Hi there,

I paste below from my answer to your question on StackOverflow (http://
stackoverflow.com/questions/11255548/excel-dna-refresh-all-data-source-
and-formula-calculation)

xlcCalculate will only calculate formulae that Excel knows have to be
recalculated. You can mark an Excel function as 'Volatile' for it to
behave like Excel's NOW() or RAND() functions, which are recalculated
every time the sheet calculates. With Excel-DNA you can do it like
this:

[ExcelFunction(IsVolatile=true)]
public static string MyVolatileNow()
{
    return DateTime.Now.ToString("HH:mm:ss.fff");

}

and compare with the default non-volatile case:

[ExcelFunction]
public static string MyNow()
{
    return DateTime.Now.ToString("HH:mm:ss.fff");

}

Another way to push-based data for Excel is to create an RTD server or
even use the new Reactive Extensions for Excel (RxExcel) support in
the latest Excel-DNA check-ins. Some initial info here -
http://exceldna.codeplex.com/wikipage?title=Reactive%20Extensions%20f....

Kind regards,
Govert

On Jun 29, 3:10 pm, Nikee <ocean.ind...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick O'Beirne  
View profile   Translate to Translated (View Original)
 More options Jun 29 2012, 9:23 am
From: "Patrick O'Beirne" <obeirne....@gmail.com>
Date: Fri, 29 Jun 2012 14:23:21 +0100
Local: Fri, Jun 29 2012 9:23 am
Subject: Re: [ExcelDna] Re: xlcFormula
In VBA there is a CalculateFull  & CalculateFullRebuild method. Is
either available?

On 29/06/2012 14:18, Govert van Drimmelen wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Govert van Drimmelen  
View profile   Translate to Translated (View Original)
 More options Jun 29 2012, 9:37 am
From: Govert van Drimmelen <gov...@icon.co.za>
Date: Fri, 29 Jun 2012 06:37:15 -0700 (PDT)
Local: Fri, Jun 29 2012 9:37 am
Subject: Re: xlcFormula
Hi Patrick,

xlcCalculateNow is "Equivalent to choosing the Calculation tab from
the Options dialog box and then choosing the Calc Now button."

I don't think there's a way to do CalculateFullRebuild via the C API.
Of course you can always use the COM interface to call those methods
on the Application object.

Regards,
Govert

On Jun 29, 3:23 pm, "Patrick O'Beirne" <obeirne....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aberglas  
View profile  
 More options Jun 29 2012, 7:01 pm
From: aberglas <aberg...@gmail.com>
Date: Fri, 29 Jun 2012 16:01:26 -0700 (PDT)
Local: Fri, Jun 29 2012 7:01 pm
Subject: Re: xlcFormula
Well, there is always the SendKeys hack,  Crtl-Alt-F9 forces a full
recalc.

Anthony

On Jun 29, 11:37 pm, Govert van Drimmelen <gov...@icon.co.za> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »