VBA Dictionary - Help

VBA66

New Member
Joined
Jul 23, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone,
I have an VBA task I would like to completed and am unsure how to do it. It is a finance related question.

In the same workbook I have two sheets, Sheet1 and Sheet2.
In sheet1 I have a table of hundreds of names with a separate table below and in sheet2 I only have an updated table of the same hundreds of names but with maybe 1/2 new ones.
How can I create a macro that will update the table in sheet one based on sheet2. So import the corresponding data into the table in sheet1 and insert any new lines (in the same position as found in sheet two) and remove any that don’t appear anymore in sheet2

many Thanks,
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
If you remove the ones that are no longer in sheet 2 from sheet 1 and add the new ones in sheet 2 into sheet 1 then the answer will be sheet 2?

I think you need to provide an example of 10 or so names in a exemplar sheet 1 and similarly for sheet 2 and show what you expect as output (modified sheet 1) and why.
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top