Consulting

Results 1 to 5 of 5

Thread: error code, run time error '424

  1. #1
    VBAX Regular
    Joined
    Jan 2011
    Posts
    55
    Location

    Unhappy error code, run time error '424

    Dear Forum,

    Using macro record the I tryed to use "RemoveDuplicates Columns:=1, Header:=xlNo" but its not working, PLease let know the mistake inside.


    Thank you in advance,

    amrane
    Attached Files Attached Files

  2. #2
    VBAX Regular
    Joined
    Jan 2011
    Posts
    62
    Location
    Hi amrane

    instead of

    [VBA]iutput_item.RemoveDuplicates Columns:=1, Header:=xlNo[/VBA]

    To

    [VBA]input_item.RemoveDuplicates Columns:=1, Header:=xlNo[/VBA]


    Cheers

    Farrukh

  3. #3
    VBAX Regular
    Joined
    Jan 2011
    Posts
    55
    Location
    Dear Farrukh

    Thank you so much

    amrane

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,729
    Location
    Also 2 suggestions

    Option Explicit would have caught the typo
    VBA assumes variables are Variants unless each on has ' As .... something'

    [VBA]
    Option Explicit '<================================ add
    Sub Sans_rep_Click()
    'Dim input_item, Output_item As Range '<=== input_item is assumed to be variant type since there is no ' as ....'
    Dim input_item As Range, Output_item As Range '<================== input_item is now typed as range
    'inbox pour seltectionner le champes des cellules en entree de traitement
    ' par example selectionner "B$3$:B$16$
    Set input_item = Application.InputBox(prompt:= _
    "Enter the site list to be filtred (i.e $A$2:$B400$):", Title:="Source location", Type:=8)



    ' de enrigistrement des macros:
    input_item.RemoveDuplicates Columns:=1, Header:=xlNo

    End Sub
    [/VBA]

    Paul

  5. #5
    VBAX Regular
    Joined
    Jan 2011
    Posts
    62
    Location
    Hi Amrane,

    If you satisfied for the answer please marked this thread as a solved.

    Thanks you

    Farrukh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •