--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at http://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
Hi Patrick, thanks for the tip,
i am in manual calculation and when i press the button, nothing happens..
Cheers and thanks for your help
--
--
Oh, it just occurred to me - are you refreshing Pivottables? That's what RefreshAll does.
If you mean to recalculate, then it's owb.calculate
or .CalculateFullRebuild for everything - see decisionmodels.com for details.
On 17/07/2014 13:28, Paul Poupet wrote:
--Hi Patrick, thanks for the tip,So if i send the program to someone who is in automatic calculation on his session, i cannot force the manual calculation of the worbook.By the way, my refresh button (on a ribbon) does not work, do you have any idea why ?if (control.Id == "RefreshWorkbook") // this is the name oh my button
{
Excel.Application oXL;
Excel.Workbook oWB;
oXL = (Excel.Application)Marshal.GetActiveObject("Excel.Application");
oXL.Visible = true;
oWB = (Excel.Workbook)oXL.ActiveWorkbook;
oWB.RefreshAll();
MessageBox.Show("Refreshed!");
}i am in manual calculation and when i press the button, nothing happens..
Cheers and thanks for your help
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+unsubscribe@googlegroups.com.
I will try this thanks !
--
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
Hi govert,
It works, thx. I have just changed small things to adapt the code, but it is a great thing !
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
Thanks for your reply patrick it is really nice from you ! (and yes i'm french)