I am extremely new to VBA. I have a Workbook with four worksheets in it. The header row on each is numbers. I need to compare the header row on each worksheet against column A in whichever other Workbook I open and hi-light the matching fields in yellow. I have started the macro by coding it to ask for and open the corresponding workbook with the required fields in it. Please note that the required fields file will be a different one each time, as each time I use the Compare Test file, I am using for different clients with different required fields. I was also asked to add a row at the top of the file to include number of blank fields in each required field column. I would be able to attach the test files for your reference. Any assistance would be greatly appreciated.
Yes, I am willing to wait for an answer. The question should have been listed under computer instead of homework.
Thank you very much.
Thank you very much for your response. In reality, both files are different for each client. When I extract the data from the database, I need to format the file to match up with the numbered headers. I insert a blank column at the beginning of sheet 1, copy the new columns A and B, and paste them over columns A and B in spreadsheets 2, 3, and 4. Then I insert the numbered header exactly as shown in the Compare test file. I have recorded a very simple Macro that does this for me, but need the additional data to complete the formatting.
As for the number of blanks, I need an additional row added at the top of the compare test file to show the number of blanks that correspond to the hi-lighted required fields. Number of rows of data will change, but should be compared by column B of sheet 1, as this will always be completed for each row of data.
For some reason I keep recieving an error message when trying to reply with the new file attached.
I need a row above the header row that will designate the count blanks. In some cases this workbook will only contain 1 or 2 rows of data below the header rows, but it could be thousands. I need the countblanks to refer to column B on sheet 1 for the number of rows of data. Please let me know if you need anything further, as I need this completed as soon as possible. I need to work with it early next week.
Thank you. I have included the links below. Please let me know if you need anything further.
Excel Compare Test Updated.xlsx
Unfortunately, I did not calculate, but added a row with numbers as an example. As I mentioned previously, the number of rows of data will be dynamic. I need the calculation to look at column B in sheet 1 to determine the number of rows of data.
Thank you very much for all of your assistance.
Thank you so very much. I will test the Macro and let you know if I have any issues.
Everything with the macro has worked perfectly. Your service has been excellent, and my rating for you reflects this. I can't thank you enough for your assistance.
The code you provided is great, but I was just asked to see if I could get the countblank to update the number of blanks as we fill in the required data in the blanks in those columns. Please let me know if you need me to start a new question with another deposit.
Excellent! Thank you very much. I will do that.
Victor was robbed and beaten by a man wearing a rubber