Correct mistaken info

Lux Aeterna

Board Regular
Joined
Aug 27, 2015
Messages
191
Office Version
  1. 2019
Platform
  1. Windows
An excel-friend here created a macro for me, that finds inconsistent names that are assigned to the same Serial number. That macro searches all sheets named List**** and brings up all inconsistencies, which I then have to correct one by one! Take a look at the picture below

1712678666720.png


I was wondering if it is possible to define the correct* ones, possibly through a checkbox, and fix all the other ones accordingly. In my example, the correct ones are the 1st and the last one. So, the macro will search for the other three registrations (rows 34, 35, 36) in the corresponding sheet, fix them accordingly, and add a comment in the corresponding sheet name cell saying "previously registered as ..." and the value the cell had previously.

By the way, there might already be a comment in that cell, so the new message should be added, without replacing the old content in the comment.

*or maybe the wrong ones, whatever is easier for you and lighter for my PC

Sheet names are List**** (**** stands for the year)
ID is in column A
Name is in column C
Serial number is in column E

Thank you in advance! 🙏

PS. After that I am going need some more additions to the macro.

That is, locating the PDF file in my computer (C:\Users\pc50\Documents\Resultsfolder\****\, renaming it with the new value (Eric Cartman, in my example), and opening it with a specific PDF editor program.

But even the first part will be of much help!

Thanks again! 🙏 🙏
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,214
Messages
6,123,660
Members
449,114
Latest member
aides

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