Looking for help or guidance on a potential Macro project

Fiddler1993

New Member
Joined
Nov 5, 2024
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
I am trying to create a macro where I can open the main workbook which will have the macros in it. I then want to be able to go and select two separate workbooks and import the data in the work books from a button click and compare all the data in Colum A only, and finding the matching data. I then would like to see it save the matching data separate from the workbooks. I don't want to have this file specific but where I can pick and chose what files I want to compare. I would also later on like to figure out how to clean up the information in Colum A by deleting unwanted special words. Any help or guidance or even a point in the right direction would be great. I will be utilizing .CSV files when I am doing this. I uploaded an example of two files that I will be utilizing. I changed some of the data as it is sentive data.
 

Attachments

  • test 1.PNG
    test 1.PNG
    11.7 KB · Views: 5
  • test 2.PNG
    test 2.PNG
    9.1 KB · Views: 5

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi Fiddler, welcome to the forum.
A starting point: Excel VBA Programming - a free course for complete beginners -> see lesson 1.3, the macro recorder (do check out the other lessons too).
Next, do some of the steps you'd like to do manually and see what code gets recorded.
After that, edit the code and try to run it... When you do, do check this mini debugging manual: Debugging in Excel VBA . Basically: Run the code with F8, so you can step through it step by step instead of running it all at once (F5/the play button).
The macro recorder is a simple first step, but that code needs quite some editing. You could ask CoPilot/ChatGPT or this forum for help if you get stuck.
 
Upvote 0

Forum statistics

Threads
1,223,876
Messages
6,175,129
Members
452,614
Latest member
MRSWIN2709

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