G
GS
joeu2004 was thinking very hard :
I thought the objective was to let Jennifer choose the filename. I'm
not understanding why you want to preserve the workbook name if you go
with using a new wkb (with 1 wks) over using a tmp wks.
I agree in general, though I feel using the current instance is easier
to manage (without much concern for unforeseen issues given the context
of the task).
This is mutual.
Funny you mention that. That was indeed my original design. But I
discovered that alters the current workbook name; and from what I read, the
only way to name it back again is to do a SaveAs with the original name. Too
presumptuous, not to mention other issues.
(If anyone knows how to do something like a SaveAs without changing the
workbook name, I'm all ears. I'm thinking of perhaps some object methods --
like FileSystemObject -- that would write the worksheet or selection to a
tab-delimited text file.)
I thought the objective was to let Jennifer choose the filename. I'm
not understanding why you want to preserve the workbook name if you go
with using a new wkb (with 1 wks) over using a tmp wks.
Right. That is what I concluded as well. And another benefit is: it might
avoid triggering a recalculation cycle of the current workbook, which I
believe adding and deleting a worksheet does. (In my implemenation, that
happens only once when I restore oldCalc, if it was Automatic.)
But at the point, I was unsure what the performance issues might be; and I
wrestled with the question of whether to create the new workbook in the same
instance of Excel or in a new instance, which further isolate any other
unforeseen side-effects.
I agree in general, though I feel using the current instance is easier
to manage (without much concern for unforeseen issues given the context
of the task).
In the final analysis, I felt that I had worked long enough on the
implementation, and it would be better to defer such changes (and
investigations) until Jennifer provides feedback, if any, about the behavior
and performance of the current implementation.
Ditto!
Joeu2004 wrote:
I do this first because it is fun, second for my own
edification, and third to help others -- although it is a close tie among all
three.
This is mutual.