On Jun 29, 3:23 pm, "Patrick O'Beirne" <
obeirne....@gmail.com> wrote:
> In VBA there is a CalculateFull & CalculateFullRebuild method. Is
> either available?
>
> On 29/06/2012 14:18, Govert van Drimmelen wrote:
>
>
>
>
>
>
>
> > 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 -