Im am new to excel programming, any help will be much appreciated
In column A i have heading "ID_number". Starting from A2 down to A10000 i have a ten digit number, and some(total duplicates my vary) of them are duplicated.
* The current and active sheet is "sheet1"
e.g. Column A
6406982836
6406982836
6406982836
6407027530
6407027530
6407027530
6407027530
6407051169
6407051169
6407051169
6407051169
6407052424
6407052424
6407071319
In the following columns there are, example, addresses. Cells A2,A3,A4 are duplicated but, B2,B3,B4 are not.
I have a simple code that does the following:
once I selected a range anywhere in row2:2 "Sheet1" Then I run a macro:
sub insert()
Rows(ActiveCell.Row).Select
Selection.Copy
Sheets("Sheet2").Select
Rows("2:2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
end sub
Can i compose a code that will example, once i selected B3, run code that will:
Look at columnA and the same row where I've selected a cell, Then select all the cells that are duplicates and Then Select Entire.Rows, Copy, go the "Sheet2" Select row 2:2 and past selection
Please Any Help or Advice...
In column A i have heading "ID_number". Starting from A2 down to A10000 i have a ten digit number, and some(total duplicates my vary) of them are duplicated.
* The current and active sheet is "sheet1"
e.g. Column A
6406982836
6406982836
6406982836
6407027530
6407027530
6407027530
6407027530
6407051169
6407051169
6407051169
6407051169
6407052424
6407052424
6407071319
In the following columns there are, example, addresses. Cells A2,A3,A4 are duplicated but, B2,B3,B4 are not.
I have a simple code that does the following:
once I selected a range anywhere in row2:2 "Sheet1" Then I run a macro:
sub insert()
Rows(ActiveCell.Row).Select
Selection.Copy
Sheets("Sheet2").Select
Rows("2:2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
end sub
Can i compose a code that will example, once i selected B3, run code that will:
Look at columnA and the same row where I've selected a cell, Then select all the cells that are duplicates and Then Select Entire.Rows, Copy, go the "Sheet2" Select row 2:2 and past selection
Please Any Help or Advice...