neodjandre
Well-known Member
- Joined
- Nov 29, 2006
- Messages
- 950
- Office Version
- 2019
- Platform
- Windows
I am trying to develop a macro where I will be importing values from one Listobject to another Listobject.
Before pasting the values, I need to ensure that the two Listobjects are the same size, i.e. they have the same number of rows and columns.
If this is not the case, then the "new Listobject" (where values will be pasted) must be adjusted by the macro to have the same size as the "old Listobject" i.e. delete/add rows/columns accordingly.
I am currently using this code to paste the values which works fine.
Any help would be much appreciated,
Andrew
Before pasting the values, I need to ensure that the two Listobjects are the same size, i.e. they have the same number of rows and columns.
If this is not the case, then the "new Listobject" (where values will be pasted) must be adjusted by the macro to have the same size as the "old Listobject" i.e. delete/add rows/columns accordingly.
I am currently using this code to paste the values which works fine.
Code:
Workbooks(cu_name).Names("import_admin_inputs").RefersToRange.Value2 = Workbooks(fn_name).Names("import_admin_inputs").RefersToRange.Value2
Any help would be much appreciated,
Andrew