hi all,
First of all, I apologise if this should be in another Forum (perhaps Dev'?). Mod's, please move it as you see fit.
Personally, I like the principle of keeping excel automation work (eg modifying excel from ppt or Access) separate from any existing excel instances. I feel this allows me to continue working in other excel instances when something is working slowly via automation. However, an office colleague (more skilled in Access) prefers to use an existing instance. My current concern is that some/most of my office's existing "instancing" code, such as a version of "DetectExcel" doesn't actually use a boolean flag to identify which approach (GetObject or CreateObject) is used in setting an Excel.Application reference.
I don't want to have tunnel vision when I discuss this with my colleague so I'm doing some research & would like to know everyone's thoughts regarding the below questions:
(note: any automation is limited to Report creation or initial data manipulation within a Reporting team of four who all use Excel 2007.)
Question 1: What are the pros & cons (limitations) of using existing excel instances versus creating & using new excel instances during automation?
(eg fewer system resources with fewer app's running, self contained/sandboxed, need for fully explicit referencing...)
Question 2: Do you personally prefer to create new instances or use existing references?
The next one may deserve a thread of it's own but I'll ask it here first...
Question 3: What are the limitations of using code like, esp with respect to working with chart objects in Excel 2007?Please Login or Register to view this content.
(I'm considering it for code that has been thoroughly tested when xlapp is visible. Edit: I'll be reading up on Jon Peltier's site tomorrow)
tia
Rob
Bookmarks