Monday, September 26, 2016

deleting duplicates from a range without using the array funcition

deleting duplicates from a range without using the array funcition

Thanks for all people in advance
My matter
Yesterday my question was answered, then when I change the code a little bit it was not working
The code is about deletiing duplicates from a range without using the array funcition
I have two sheets
"sheet990" which as the values of 8 to 184 in d1:d177 values in
"sheet1" which is the active sheet ( where I run the macro from ) .
It has the data from A4:GZ1000 .
duplicate values are if all the feilds between column 8:184 matches
Hoping for help
my new code is below
It give me an error  on last line .
Error message "run-time error 5 - invlaid procedure call or argument"

Sub RemoveDuplicates()
    Dim Arr()
    Dim intDupColmnKeyFeildsCount As Long
    Dim intTmpCounter01 As Integer
    'The array must be zero based
    intDupColmnKeyFeildsCount = Worksheets("sheet990").Cells(1, 4).End(xlDown).Row
    ReDim Arr(0 To intDupColmnKeyFeildsCount - 1)
    'read all data and column duplicates data for sheet and enter it in array
'    MsgBox (LBound(Arr) & "-" & UBound(Arr) & "-" & intDupColmnKeyFeildsCount)
     For intTmpCounter01 = LBound(Arr) To UBound(Arr)
        'Fill Array Arr with numbers of duplicate keys feilds from sheet
        Arr(intTmpCounter01) = Worksheets("sheet990").Cells(intTmpCounter01 + 1, 4).Value
'        Worksheets("sheet990").Cells(intTmpCounter01 + 1, 6).Value = intTmpCounter01
'        Worksheets("sheet990").Cells(intTmpCounter01 + 1, 7).Value = Arr(intTmpCounter01)
     ActiveSheet.Range("$A$4:$GZ$1000").RemoveDuplicates Arr, xlNo
End Sub

Keys to the Problem deleting duplicates from a range without using the array funcition

Download Error Fixer (Free)

This matter had been answered
I don't know how to close this thread
Answer was giving in the following threads
Thanks for all people

To check for Windows updates

  1. Open Windows Update by clicking the Start button Picture of the Start button, clicking All Programs, and then clicking Windows Update.
  2. In the left pane, click Check for updates, and then wait while Windows looks for the latest updates for your computer.
  3. If any updates are found, click Install updates. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

Another Safe way to Fix the Problem: deleting duplicates from a range without using the array funcition:

How to Fix deleting duplicates from a range without using the array funcition with SmartPCFixer?

1. Click the button to download Error Fixer . Install it on your system.  Open it, and it will perform a scan for your computer. The errors will be shown in the list.

2. After the scan is done, you can see the errors and problems which need to be fixed.

3. The Fixing part is done, the speed of your computer will be much higher than before and the errors have been removed.

Related: How to Update & Download NVidia GeForce 6100/nForce 420 WHQL Certified driver v.178.13,How to Update & Download NVidia GeForce 7600 GS Video Driver v.295.75 Certified,How Can I Update & Download NVidia GeForce 820M Driver v.344.48 WHQL,[Solved] Download NVidia GeForce GTX 560M VGA Driver v.296.17 Certified,Way to Update & Herunterladen NVidia GeForce GT 130M Video Treiber v.295.75 Certified,How to Update & Download SONY SVE14A1X1RH Realtek Ethernet Driver,Where to Download SONY SVS13A2W9ES Bluetooth Driver (Intel) v.2.6 -,Best Way to Update & Download SONY VGN-CR203E Conexant HDAUDIO SoftV92 Data Fax Modem with SmartCP Setup Program v. driver,Best Way to Download SONY VGN-FE790G/N Wireless LAN Driver v.,Method to Update & Download SONY VGN-NR31Z/S Firmware Extension Parser Device v.,How to Fix Error 0x0000c1f5 Solución?,Error 0x80071a91 Win7 Fix Patch,Error 0x800ccc60 Windows Live Mail [Solved],Error Message 0x800ccc79 Outlook 2000 Fix,What is Error 0xc1ab0001?,[Answered] x64 saplugin dll,How to Fix Problem - Kb943729 Download?,Troubleshooting: Bccode D1 Error,Java Runtime Tech Support,Troubleshooting: ERROR NO SUCH GROUP Error
Read More: Date format\/ extraction [Anwsered],Deleted Windows.old folders are still taking up room on hard drive! Tech Support,How to Fix Problem - data is dynamic where the column #'s may increase or decrease I want to place a filter in the SUM column no matter wherever it is?,How to Fix Problem - defragmentating my system files!?,[Solved] Data Validation From Drop-Down List Fails

No comments:

Post a Comment