tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,194
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
hi everyone,
i need a macro that can copy data into the active excel document from the other open document.
So I have the document the macro is saved in and it has a sheet called raw data that is empty,
I want the macro to check that there are only two excel documents of any type open xlsm xls xlsx (but some people might have the personal workbook as well so somehow take this into account)
if more than two are open just message box "too many documents open" exit sub
if there are only two copy from the other open documents active sheet all contents which should be Columns A toV
and paste values into thisworkbook sheet "raw data"
please help if you can
Thanks
Tony
i need a macro that can copy data into the active excel document from the other open document.
So I have the document the macro is saved in and it has a sheet called raw data that is empty,
I want the macro to check that there are only two excel documents of any type open xlsm xls xlsx (but some people might have the personal workbook as well so somehow take this into account)
if more than two are open just message box "too many documents open" exit sub
if there are only two copy from the other open documents active sheet all contents which should be Columns A toV
and paste values into thisworkbook sheet "raw data"
please help if you can
Thanks
Tony