I am looking for some VB code for the following.
I need to copy all of the data (values only) from worksheet 'extworksheet' in workbook 'extworkbook.xlsx' to worksheet 'localworksheet' in this (active) workbook. Literally replicate the 'extworksheet' into worksheet 'localworksheet' from cell $A$1 on. The size of the 'extworksheet' can vary in rows and columns on a day to day basis, so I need something that copies all of the populated rows (ie row 1 to last row).
Can anyone help with this please? I have tried various code snippets I have found but they all come up with errors. I am using Office 365 (Excel 2016).
I need to copy all of the data (values only) from worksheet 'extworksheet' in workbook 'extworkbook.xlsx' to worksheet 'localworksheet' in this (active) workbook. Literally replicate the 'extworksheet' into worksheet 'localworksheet' from cell $A$1 on. The size of the 'extworksheet' can vary in rows and columns on a day to day basis, so I need something that copies all of the populated rows (ie row 1 to last row).
Can anyone help with this please? I have tried various code snippets I have found but they all come up with errors. I am using Office 365 (Excel 2016).
Last edited: