+ Reply to Thread
Results 1 to 2 of 2

Diff table mechanism in VBA

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Diff table mechanism in VBA

    Hi Guys,

    The goal is to compare all tables from old workbook and check all changes in master workbook and have output like here:

    Screenshot_25.png

    i have Schema worksheet from i know what primary keys exist in tables, to simplyfi example i added 2 the same tables in on worksheet:
    Screenshot_26.png

    As you can see Table2 is in Master Workbook and:
    1. For Primary Key column name : Deployment = "Windows" there was change for column Group from Group1 to Group666 ("Updated")
    2. For Primary Key : Deploment = "Linux" entire row was deleted ("Deleted")

    I outputted results in Output worksheet.

    And now. How to create mechanism for it?
    Use AdODB sql in VBA and somehow compare tables using joins or loop one by one and compare one record by another record using dictionary objects?
    Or...what else? I do not know how to start and no idea for this.

    Please help,
    I will be grateful for any tips and support,
    Jacek
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Diff table mechanism in VBA

    I am really appreciate any help.

    What if i will create parent dictionaries:

    TabName + PrimaryKey row and for PrimaryKey row add children dicrionaries for each column?

    Hmm i am afraid about performance.

    Jacek

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. using same formula on diff sheet with diff columns
    By Patcheen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2016, 08:32 AM
  2. Replies: 6
    Last Post: 08-28-2014, 02:44 AM
  3. Pivot table form rages on diff sheets
    By nicholas.jacka in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-13-2013, 04:51 AM
  4. Replies: 0
    Last Post: 07-30-2013, 07:42 PM
  5. [SOLVED] Macro to send mail via lotus notes diff people diff attachment
    By mangeshp4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2013, 03:01 AM
  6. Replies: 0
    Last Post: 07-07-2005, 12:05 PM
  7. Replies: 0
    Last Post: 01-13-2005, 06:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1