+ Reply to Thread
Results 1 to 10 of 10

VBA - Getting application error code 1004 when trying to fetch defects from QC 10

  1. #1
    Registered User
    Join Date
    01-05-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Question VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    When programe is trying to fetch data from qc i am getting error run time error 1004 Application error or excel error.

    Please refer attached code for referenc.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    Hi, welcome to the forum, the code tells me nothing.
    I suggest a sample file with non-sensitive non-private data will do better
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    01-05-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    Hi Han,

    I have attached my code, i will provide u some idea for code.

    In first phase of code i am creating connection with my qc instance & authenticating the user who is loggin using this utility.
    In second phase of code i am trying to fetch my release details & trying to fetch defects that are detected under that release.

    For first phase it is working properly but when it start fetching defects from qc at that time excel throw me error 1004 & i am not able to resolve that

    Aki

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    An Application defined error means that probably you forgot to dimension a variable
    Is objworkbook defined somewhere?
    Have you gone through the code step by step?
    Try adding .Value
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-05-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    Tried this but it saying "Object doesn't support this property or method" Runtime error 438.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    More explanation please, on which line does this happen and have you checked if all variables are valid (dimensioned?)
    I would need the file itself to troubleshoot. I'm sure it's a simple error but I cannot tell from your code.

  7. #7
    Registered User
    Join Date
    01-05-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    Which file you require Han.. i have provided code other than that what else is required?

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    Well. just start thinking. How do you think I can reproduce anything if I do not know what the input is?
    Your code is incomplete it begins with some irrelevant text and the first code line is On Error resume next.
    I am quite good in writing VBA code and thinking up solutions but trying to guess what someones is working with or what the source data looks like, that is for magicians

  9. #9
    Registered User
    Join Date
    01-05-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    Hi Han

    I have attached code.
    Attached Files Attached Files

  10. #10
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA - Getting application error code 1004 when trying to fetch defects from QC 10

    First, it's Hans not Han.
    Second the code looks good but without data I cannot test anything.
    So you will have to check yourself if all the worksheets you refer to exist and are present.
    There is no error trapping, you just have a line that says Application.StatrusBar = Err.Description
    Well, apart from that I cannot tell you anything
    I have no idea what QC10 is and the 1004 error is that it is pointing to something that does not exist.
    So what do you want me to do? Guess on things, do magic? It's your application, your data and all we get to see is code.
    Sorry, you will have to be more explicit.

+ 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. Excel macro to fetch linked defects to test case
    By nitesh087 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2015, 07:31 PM
  2. HELP WITH ERROR CODE '1004' Application-defined or object defined error
    By QuintonMcCloud in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-20-2015, 03:34 PM
  3. [SOLVED] Sort Macro Run-time error '1004': Application/Object-defined error.
    By sam1212 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2014, 10:05 AM
  4. [SOLVED] Error 1004 (application-defined) in my VBA code
    By sdehod in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2013, 04:35 PM
  5. [SOLVED] Getting Error 1004 Object or Application Defined Error - Code to rearrange data
    By BlazzedTroll in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-10-2013, 12:10 PM
  6. Error When Implementing Code: "1004 - Application-defined or object-defined error"
    By blueblazingdemon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2013, 11:21 AM
  7. Application Error 1004 running Pivot Code
    By grifter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2012, 12:23 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