+ Reply to Thread
Results 1 to 7 of 7

424 Error

Hybrid View

rpjwhite 424 Error 02-12-2018, 11:39 AM
AliGW Re: 424 Error 02-12-2018, 11:42 AM
rpjwhite Re: 424 Error 02-12-2018, 12:07 PM
alansidman Re: 424 Error 02-12-2018, 11:43 AM
rpjwhite Re: 424 Error 02-12-2018, 12:08 PM
Norie Re: 424 Error 02-12-2018, 12:23 PM
rpjwhite Re: 424 Error 02-12-2018, 12:56 PM
  1. #1
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: 424 Error

    If this is the problem line you should split out the Application.Match parts to make things easier to debug.
    NextInt = Application.WorksheetFunction.Index(EM.Range("A13:D18"), Application.WorksheetFunction.Match(AvgValue, EM.Range("A13:A18"), 0), Application.WorksheetFunction.Match(Cells(NextRow, 6), EM.Range("A13:D13"), 0)) '<-Error happens in this Row
    For example.
    Dim ResCol As Variant
    Dim ResRow As Variant
    
    ' other code
    
        ResCol = Application.Match(Cells(NextRow, 6), EM.Range("A13:D13"), 0)
    
        ResRow = Application.Match(AvgValue, EM.Range("A13:A18"), 0)
    
        If Not IsError(ResCol) And Not IsError(ResRow) Then
            NextInt = Application.WorksheetFunction.Index(EM.Range("A13:D18"), ResRow, ResCol)
        Else
            Msgbox "Problem finding match(es)."
        End If
    If posting code please use code tags, see here.

  2. #2
    Registered User
    Join Date
    10-11-2016
    Location
    Aberdeen, Scotland
    MS-Off Ver
    2010
    Posts
    49

    Re: 424 Error

    @Norie yeah that seemed to work. Now trying to work out why it is erroring...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  2. [SOLVED] Run-tim error -2147467259(80004005): Automation error Unspecidied error
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 12:12 PM
  3. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  4. Receiving following error “Complie error : syntax error” Help
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2012, 10:19 AM
  5. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  6. Error 75 File/Path access error, sometimes Error 1004
    By smokebreak in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-16-2011, 02:35 PM
  7. [SOLVED] Error Handling - On Error GoTo doesn't trap error successfully
    By David in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2006, 02:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1