Home |
Search |
Today's Posts |
#14
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 4 Jun, 17:21, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote: Just my two cents but you are using globals for the wrong reason. You are better off creating the collection when it is needed than trying to keep the collection stored globally. The code to create the collection is relatively easy and very quick. I think you may be confusing the example I created to show some wierd behaviour of global variables with the actual application that I am writing. Creating the application object and the dozens of child objects and checking data validity in the actual application is far from fast, it can take 10 minutes. It also creates an annoying amount of disruption in the server application UI while it is doing it too. What I am doing is using sets of values stored in a set of excel sheets to set combinations of values in a separate application more rapidly and accurately than a human can do it. This requires an object which provides an interface between Excel and the OLE server, and an array of sub-objects, one for each onscreen variable to be adjusted. There are 10,000 variables that could be adjusted, though in practice the users will only be performing experiments on 20 or so at a time. There is a certain amount of overhead in the interaction, which can be minimised by creating the interface objects ahead of time. Most of the "variables" are not simple scalar values, they are 3D maps which the interface objects allow me to manipulate. See it as equivalent to not creating an Excel application object and a Sheets collection every time you want to look at a cell value. I want a persistent array of objects which I can interrogate and set values through. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keeping Values in Variables | Excel Programming | |||
keeping a shape constant regardless of changes in variables | Excel Discussion (Misc queries) | |||
Keeping variables in a formula | Excel Discussion (Misc queries) | |||
Keeping a Variables value alive. | Excel Programming | |||
Keeping track of Global variables | Excel Programming |