Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Excel 2010 it was possible to get a reference to the current Excel application without creating a new instance of Excel. E.g. the ScreenUpdating property could be reached by the following:

bool boolScreenUpdating = Globals.ThisAddIn.Application.ScreenUpdating;

This is not possible in Excel 2013. How to reach e.g. this property without creating a new instance of Excel ?
Posted
Comments
CHill60 30-Nov-15 7:28am    
What do you mean by a new instance? Are you actually trying to access the currently running instance of Excel that was not started by your program?
Member 2014650 30-Nov-15 17:55pm    
Yes, I am trying to access the current running instance of Excel. Ie. the instance af Excel that my AddIn is running within. I want to turn off ScreenUpdating while doing modifications within the current worksheet. In VS2010 for an Excel 2010 AddIn, this could simply be done by:
Globals.ThisAddIn.Application.ScreenUpdating = false;
However, this is no longer possible in VS2015 for an Excel 2013 AddIn.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900