Solved

VBA this

Posted on 2013-05-24
3
301 Views
Last Modified: 2013-05-24
Hello,

There are two lists ā€“ list one and list two.
VBA does this:
Grab and combine the values from both the list into one single list where are no duplicates.
vbaTHIS.xlsx
0
Comment
Question by:Rayne
  • 2
3 Comments
 

Author Comment

by:Rayne
ID: 39194766
a robust code is preffered
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39194971
Sub Macro2()
    Range("F3:F" & Rows.Count).ClearContents
    Range("B3:B" & Range("B3").End(xlDown).Row).Copy Range("F3")
    Range("D3:D" & Range("D3").End(xlDown).Row).Copy Range("F3").End(xlDown).Offset(1)
    Range("F3:F" & Range("F3").End(xlDown).Row).RemoveDuplicates Columns:=1, Header:=xlNo
    Range("F3:F" & Range("F3").End(xlDown).Row).Sort Key1:=Worksheets("Sheet1").Range("F1")
End Sub

Open in new window

0
 

Author Comment

by:Rayne
ID: 39195092
thank you Ssaqibh
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final pā€¦

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now