Re: Copying Worksheets from one workbook to another

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Actually, the worksheets I'm planning on copying from a centralized file
(where all of the data are gathered and processed) are the ones involving
charts. Rather than using arrays as arrays are kinda a generic form with
restrictions and can also be inefficient for certain cases, I been using
class modules, enumerations, and collections instead.

Some might as why not use "Types". Well with the onset of VB.NET, Types are
not allowed and if there comes a time when the code needs to be transferred
to a VB.NET environment, like to spend as little time converting as
possible. That's just one of the restricts to the .NET environment as
compared to VB6 programming environment that MS Office 2000 - MS Office 2003
(can't speak for MS Office 2007) uses a subset of for it's VBA programming
environment.

As for defined names, I would still be dependent on defined names for range
references within VBA as data from our main database is brought into Excel
on worksheets via a 3rd party program, which then VBA takes over from there
to manipulate the data and put into report format. There are many things
that I have done via SQL first, but just as there are restrictions and
limitations to VBA, there's also restrictions and limitations to using SQL
as SQL can't do certain things.

These are codes that's ran nightly and completed before I even come into
work in the morning.

--
Thanks,

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"Mike H." <MikeH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:74800C5B-8D21-4D1C-93A8-49D1204E8DF1@xxxxxxxxxxxxxxxx
Why not build an array that contains all the data from the source sheet
and
then go to the destination, insert a new sheet and populate all the cells
based on the array. Not sure how big an array can actually be, but if you
bumped into a problem, you could break your "copying" into segments, read
part, populate part, read more, populate more, etc. Then you'd get no
names.



.



Relevant Pages

  • Re: transpose
    ... In vba, ... Sub Demo() ... Generally I would try to avoid using two arrays ... Dim BigNum As Integer, SmlNum As Integer ...
    (microsoft.public.excel.programming)
  • Re: Memory Management
    ... I essentially want to compare the data of two worksheets. ... have used the binary tree aspect. ... > the indexes needed for your arrays of arrays etc: ... > pretty small and the time taken to erase them should not even be noticeable. ...
    (microsoft.public.excel.programming)
  • Re: array-passing trick
    ... existing libraries that expect to get arrays; ... I want to avoid copying. ... get around it by using explicit shape or assumed size. ... any decent compiler will avoid doing the copying. ...
    (comp.lang.fortran)
  • RE: Code error
    ... when referencing worksheets in vba - use the code name (see ... Private Sub SelectArguments_Click ... EngIndex = EngineSelect.List ...
    (microsoft.public.excel.misc)
  • Re: Front End for my workbook
    ... for my workbook which has 14 worksheets (1 year-end totals, 1 graphs, ... Is this possible in VBA?. ... I was thinking about a Excel with VBA for Dummies ... A couple of my fellow Avon friends don't have Excel but would like to ...
    (microsoft.public.excel.programming)