Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all,
I am using the macro below to cut and paste all the same contract numbers and test results to a new sheet. This works fine except that only information from column A to column Y will copy and paste. I am missing 3 columns Z, AA, AB. Can anyone tell me what I am doing wrong? Sub RemoveDuplicates() Dim allcells As Range, Cell As Range Dim nodupes As New Collection On Error Resume Next For Each Cell In Range("A27:A500") nodupes.Add Cell.Value, CStr(Cell.Value) Next Cell On Error GoTo 0 For Each item In nodupes UserForm1.ListBox1.AddItem item Next item UserForm1.Show end sub Thank you in advance for your help.... Eric |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Automating copy/paste/paste special when row references change | Excel Programming | |||
help w/ generic copy & paste/paste special routine | Excel Programming | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
Copy and Paste macro needs to paste to a changing cell reference | Excel Programming |