M
Monomeeth
Hello
I have created a macro which automatically compares the data in two
Worksheets, Worksheet A and Worksheet B. It does this by using the first
column as a reference (this column contains a unique identifier). The macro
identifies: (1) new data by copying it into a worksheet named "Additions",
(2) ignored data by copying it into a worksheet named "Ignored", and (3)
changed data by copying it into a worksheet named "Changed".
I now want to create a second macro which will automatically update
Worksheet B by: (1) adding the data in the "Additions" worksheet, and (2)
modifying the cells in only one column for all the rows listed in the
"Changed" worksheet.
DESCRIPTION
Worksheet B contains 20 columns, whileas the "Changed" worksheet only
contains 10 columns. These 10 columns have the same headings as the first 10
columns in Worksheet B. The 10th column (i.e. column "J") is headed "End
Date" and this is the only difference between the rows in Worksheet B and the
"Changed" worksheet. In other words, the records listed in the "Changed"
worksheet are only listed because their "End Date" has changed in comparison
to Worksheet B.
PROCESS
I now want a macro to automatically update the "End Date" of all these
records within Worksheet B without changing the contents of columns 1 to 9 or
the contents of columns 11-20. So the Macro needs to identify only those rows
in Worksheet B sharing the same unique identifier as those listed in the
“Changed†worksheet, and update the "End Date" field in these rows with the
relevant dates found in the corresponding rows within the "Changed" worksheet.
The macro also needs to add to the bottom of Worksheet B the all rows
contained in the “Additions†worksheet.
I hope this all makes sense.
Your help would be greatly appreciated.
I have created a macro which automatically compares the data in two
Worksheets, Worksheet A and Worksheet B. It does this by using the first
column as a reference (this column contains a unique identifier). The macro
identifies: (1) new data by copying it into a worksheet named "Additions",
(2) ignored data by copying it into a worksheet named "Ignored", and (3)
changed data by copying it into a worksheet named "Changed".
I now want to create a second macro which will automatically update
Worksheet B by: (1) adding the data in the "Additions" worksheet, and (2)
modifying the cells in only one column for all the rows listed in the
"Changed" worksheet.
DESCRIPTION
Worksheet B contains 20 columns, whileas the "Changed" worksheet only
contains 10 columns. These 10 columns have the same headings as the first 10
columns in Worksheet B. The 10th column (i.e. column "J") is headed "End
Date" and this is the only difference between the rows in Worksheet B and the
"Changed" worksheet. In other words, the records listed in the "Changed"
worksheet are only listed because their "End Date" has changed in comparison
to Worksheet B.
PROCESS
I now want a macro to automatically update the "End Date" of all these
records within Worksheet B without changing the contents of columns 1 to 9 or
the contents of columns 11-20. So the Macro needs to identify only those rows
in Worksheet B sharing the same unique identifier as those listed in the
“Changed†worksheet, and update the "End Date" field in these rows with the
relevant dates found in the corresponding rows within the "Changed" worksheet.
The macro also needs to add to the bottom of Worksheet B the all rows
contained in the “Additions†worksheet.
I hope this all makes sense.
Your help would be greatly appreciated.