Hello to all!!
I've got the code below
Sub CopyUnique()
Dim s1 As Worksheet, s2 As Worksheet
Set s1 = Sheets("mypage")
Set s2 = Sheets("george")
s1.Range("A3:L500").Copy s2.Range("A1")
s2.Range("A3:L500") .RemoveDuplicates Columns:=1, Header:=xlNo
End Sub
It works great. The thing is that i don't know how to adapt the code in order to copy data from more than one sheets. In this case i want to add more sheets to copy from than just from sheet "george" to the main sheet that is "my page". And one last thing, although i have added an additional module to place this code in, it doesn't work when i open the workbook unless i go into the vba editor and do it from there.
Any suggestions would be much appreciated...thank you for your kind intentions
I've got the code below
Sub CopyUnique()
Dim s1 As Worksheet, s2 As Worksheet
Set s1 = Sheets("mypage")
Set s2 = Sheets("george")
s1.Range("A3:L500").Copy s2.Range("A1")
s2.Range("A3:L500") .RemoveDuplicates Columns:=1, Header:=xlNo
End Sub
It works great. The thing is that i don't know how to adapt the code in order to copy data from more than one sheets. In this case i want to add more sheets to copy from than just from sheet "george" to the main sheet that is "my page". And one last thing, although i have added an additional module to place this code in, it doesn't work when i open the workbook unless i go into the vba editor and do it from there.
Any suggestions would be much appreciated...thank you for your kind intentions