Hello all. I' have an excel file that from a sheet DupCheck Prep,
- I copy 7 columns (A through G) of data (of any number of rows) to,
- an Access table tbl_InputData and then,
- I run the access macro called Mac_RunDupCheck. I do this to check our database for records from this sheet that already exist.
- Once complete the results show in a access table labeled as Tbl_DupCheckResults
- The results span across 50+ columns of data which are pasted back into the excel workbook in a sheet called DupCheck Results
I'd like to automate as much as this as possible using excels VBA. I'll simplify and re-summarize this up below if anyone can help! Thanks so much!
Step 1.
Excel Export to Access
Sheet Name: DupCheck Prep
Action: Columns (A,B,C,D,E,F,G) copied to Access Table below
Step 2.
Access Import
DB Name: DupChecker 2016 v4.0
Access Table: tbl_InputData
tbl_InputData Field Columns (7): (SeqNum,InputName,InputAddress,InputAddress2,InputCity,InputState,InputZip)
(tbl_InputData can remain open or closed from view)
Step 3.
Run Access Macro
Macro Name: mac_RunDupCheck
Step 4.
Access Export to Excel
Access results table name: tbl_DupCheckResults
Export to Excel sheet name: DupCheck Results
That's it! I really appreciate any help getting as far into the steps as you can get. Thanks!!
Bookmarks