Getting data from a closed workbook

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've seen all the threads regarding the topic, but all these macros/codes
copy the data from a closed workbook to the active workbook.

I want a macro with following features
1. I do not want to copy the data, instead I want to load an array with the
data from a closed workbook
2. I do not know the amount of data in the closed workbook
3. Macro should run irrespective of whether the workbook is open or closed
4. Macro should be stored outside the workbook so that all the users in the
network should be able to use it

please, help me out of the situation.

Thanks a ton
 
Tom,

The code looks like that it copies a known range of data from closed workbook.

What I'm looking for is to compare the data from a closed workbook with the
data in the activesheet and highlight the cells with matching values. I do
not want to copy the data onto my excel sheet

The closed workbook will be maintained by me (add/delete etc.. everyday) and
my team members will run macros on their machines to highlight data in their
workbooks.

Will your earlier answer suffice my requirements?

Thanks,
 
and another thing...

will using ADO mean that all my team should have ActiveX loaded/enabled in
their system? if yes, it is going to be a problem as all my team do not have
that previlage.

is there any other method?

Thanks,
 
Before it is placed in the workbook, it is in a record set. You might have
to do a little of your own code writing. Use that as an example.

I don't think you need ActiveX enabled.
 
This is my suggestion:

Use *ExecuteExcel4Macro(string)*

I want a macro with following features
1. I do not want to copy the data, instead I want to load an array with
the
data from a closed workbook
- ExecuteExcel4Macro(string) read the value of the cell written in the
string
2. I do not know the amount of data in the closed workbook
- use for..next or for..each method to read all the cells you need
3. Macro should run irrespective of whether the workbook is open or
closed
- the string could be the cell reference of a closed workbook.
4. Macro should be stored outside the workbook so that all the users in
the network should be able to use it
- you can put it in a addin's.

Hope this can help you

Massimo Pulidori
 
Back
Top