+ Reply to Thread
Results 1 to 4 of 4

Error 1004 - application defined or objecft defined error in 2010

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Gurgaon
    MS-Off Ver
    Excel 2010
    Posts
    5

    Error 1004 - application defined or objecft defined error in 2010

    Hi Team,

    I am getting error 1004 in vba for following code:

    If Range(errorTrnsID).Value = 10862 Then
    Range(odlData1).Select
    ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-7],'ODL " & saveDate & ".txt'!C3:C65,25,FALSE)" (error is occurring in vlookup) odlValue1 = Range(odlData1).Value
    Range(odlData3).Select
    ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-9],'ODL " & saveDate & ".txt'!C3:C65,24,FALSE)"
    odlValue3 = Range(odlData3).Value
    Range(odlData4).Select
    ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-10],'ODL " & saveDate & ".txt'!C3:C65,17,FALSE)"
    odlValue4 = Range(odlData4).Value
    Range(odlData5).Select
    ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-11],'ODL " & saveDate & ".txt'!C3:C65,26,FALSE)"
    odlValue5 = Range(odlData5).Value
    Range(errorInfo).Value = "<" & tdate & " " & userNm & "> Please confirm address of " & odlValue1 & " " & odlValue3 & " " & odlValue4 & " " & odlValue5 & ". Please confirm address to remove bad address indicator."
    End If


    please suggest how to resolve this issue.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    What's in savedata?

    Also, what range do you want to look in?

    PS Is there a reason you are using R1C1 notation?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    Gurgaon
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Error 1004 - application defined or objecft defined error in 2010

    We are saving comment depending on trans id.
    This was working fine in 2003 but giving error in 2010

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    So what's in saveDate?

    By the way, you should use code tags when posting code - you've not done that in any of your recent posts.

+ 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. [SOLVED] Error 1004: Application-defined or object-defined error on Range(Cells(x,y)) syntax
    By winch in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2013, 11:02 AM
  2. [SOLVED] run-time error '1004' application-defined or object-defined error - Excel 2007
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 02:46 AM
  3. Replies: 2
    Last Post: 09-12-2012, 01:01 PM
  4. Replies: 0
    Last Post: 05-14-2012, 11:59 PM
  5. Macro - Run-time Error '1004': Application defined or object defined error
    By robby10 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2010, 07:55 AM

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