• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Hello, How I can extract unique data from table based on a criteria from another sheet and put the result on the same sheet where the criteria

Rahaf

New Member
Hello, How I can extract unique data from a table based on criteria from another sheet and put the result on the same sheet where the criteria
with auto adjust the result in the range with vba
 

Attachments

  • VBA unique data.xlsx
    550.1 KB · Views: 9
Hello, How I can extract unique data from a table based on criteria from another sheet and put the result on the same sheet where the criteria
with auto adjust the result in the range with vba

Hello Rahaf,

See if this helps you:
https://chandoo.org/forum/threads/c...k-to-another-using-ado-sql.41488/#post-247529

It is using the DAO method (SELECT statement). In Sub
Sub RS2WS, it rearranges the columns.
This is based on external workbook, Data Tables. You can reference the external workbook as your current workbook
 
Back
Top