pioniereelfico
New Member
- Joined
- Jun 1, 2011
- Messages
- 2
Hi guys, I'm new of the world of small office mc guiver's use of excel. So I think you can help me, and I'll do my best to solve other's problem.
In this two words you can understand I'm not english/american (or other country spoking this language) but I'm italian, hope is not a problem. I'm currently working for a medium italian farm and my boss break me balls with his request of data connection, data analysis etc.. Moreover, there are no moneys for do the basic data elaboration with small software we buy (asking money here is more diffucult than have sex).
Here's the problem:
we have two sheets in excel, with equal data format (same columns name). Those data are extracted from 2 database server (one here in Orzinuovi, the other near Pavia). Those data are financial data, so my boss need to see a global pivot of those data and maybe refresh it. I remember there's no money, elsewhere I'll do a *serious*vpn connection and connect two database.
What we need is a sum of data in sheet1 (Brescia) and sheet2 (Pavia) and put that data in sheet3 (Consolidato). I' used to work with msquery and UNION ALL operator, but if you change location of the file, or name or sometimes, it breaks, and I must looose my break for those breaks and re-do the connection.
The question is:
Is there any macro to merge two sheets that can be called clicking a button, fix the query and update data in sheet3?
Simple schema for rapid understand:
this should be refreshed in quick time
MSQL--->sheet1,
.......................|--->MSQUERY--> sheet3---> pivot
MSQL--->sheet2'
thank you very much for the help
In this two words you can understand I'm not english/american (or other country spoking this language) but I'm italian, hope is not a problem. I'm currently working for a medium italian farm and my boss break me balls with his request of data connection, data analysis etc.. Moreover, there are no moneys for do the basic data elaboration with small software we buy (asking money here is more diffucult than have sex).
Here's the problem:
we have two sheets in excel, with equal data format (same columns name). Those data are extracted from 2 database server (one here in Orzinuovi, the other near Pavia). Those data are financial data, so my boss need to see a global pivot of those data and maybe refresh it. I remember there's no money, elsewhere I'll do a *serious*vpn connection and connect two database.
What we need is a sum of data in sheet1 (Brescia) and sheet2 (Pavia) and put that data in sheet3 (Consolidato). I' used to work with msquery and UNION ALL operator, but if you change location of the file, or name or sometimes, it breaks, and I must looose my break for those breaks and re-do the connection.
The question is:
Is there any macro to merge two sheets that can be called clicking a button, fix the query and update data in sheet3?
Simple schema for rapid understand:
this should be refreshed in quick time
MSQL--->sheet1,
.......................|--->MSQUERY--> sheet3---> pivot
MSQL--->sheet2'
thank you very much for the help