ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Data aggregation with multiple workbooks (https://www.excelbanter.com/excel-programming/442430-data-aggregation-multiple-workbooks.html)

Kadco

Data aggregation with multiple workbooks
 
I am currently setting up a workbook. In this workbook I have a data input
sheet where people would fill out information. Multiple people will be
filling out this worksheet. What is the best way to aggregate the data among
multiple workbooks.
--
Kad

SteAXA

Data aggregation with multiple workbooks
 
I think i would do, in every workbooks, a function that opens the common
workbook, reads data and closes the common workbook like this:

Sub ReadCommonDataInOtherworkbook()
Dim vaFileName
Dim DataRead

'i block the screen updating, so the users don't realize what happen
Application.ScreenUpdating = False

'i open my common workbook
Workbooks.Open Filename:="c:\tmp\xxxx.xls"
'i set my focus in common workbook
Windows("xxxx.xls").Activate
'i set focus on the cell that i want and i take data
Range("A1").Select
DataRead = ActiveCell.Value
'i close my common workbook
ActiveWindow.Close

'i unblock the screen updating
Application.ScreenUpdating = True

MsgBox DataRead

End Sub

Ste'

"Kadco" wrote:

I am currently setting up a workbook. In this workbook I have a data input
sheet where people would fill out information. Multiple people will be
filling out this worksheet. What is the best way to aggregate the data among
multiple workbooks.
--
Kad



All times are GMT +1. The time now is 09:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com