VBA Code for Checking some Numbers between two Workbook & Highlight the same & also Delete the highlighted numbers with whole row.

Bharath Kumar

New Member
Joined
May 20, 2015
Messages
14
Hi There,

I have to prepare a report. for that I need a Macro which does the following method:

There are two workbooks namely A & B, A is the Tracker & B is the report what I have to prepare. So now I have to delete some column with full row which contains same numbers as in A workbook. The number would be like US20150518162044721. The given number will be there in B workbook also so Now I have to delete the entire row which is there in B workbook. The Number should highlight & Then should delete or directly should delete. Please help me out. Many Thanks in Advance...
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Bharath Kumar

New Member
Joined
May 20, 2015
Messages
14
Help me out on this Buddies????

Hi There,

I have to prepare a report. for that I need a Macro which does the following method:

There are two workbooks namely A & B, A is the Tracker & B is the report what I have to prepare. So now I have to delete some column with full row which contains same numbers as in A workbook. The number would be like US20150518162044721. The given number will be there in B workbook also so Now I have to delete the entire row which is there in B workbook. The Number should highlight & Then should delete or directly should delete. Please help me out. Many Thanks in Advance...
 

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
Bharath,
Why not just use a vlookup to identify the values from A that exist on B, then sorted based on that vlookup, and delete the values that match?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,787
Messages
5,833,696
Members
430,225
Latest member
RKB_Excel

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
Top