Solved

VBA this

Posted on 2013-05-24
3
286 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

759 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

18 Experts available now in Live!

Get 1:1 Help Now