Results 1 to 4 of 4

Thread: Compile error

  1. #1

    Thread Starter
    Registered User
    Join Date
    Feb 2021
    Posts
    2

    Compile error

    I record script in SAP and apply to UIPath

    But if I invoke , It show error as below.

    Name:  Capture.JPG
Views: 689
Size:  29.1 KB

    Please guide me about it.

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,854

    Re: Compile error

    You are not using VB.Net, but VBA.
    Which application are you using to write the VBA code?

    How is Application defined?
    You should not use IsObject but Is Nothing
    Code:
    If Not Application Is Nothing Then
    End

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,458

    Re: Compile error

    Isn't Application a reserved keyword in VBA?

  4. #4
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,522

    Re: Compile error

    Quote Originally Posted by .paul. View Post
    Isn't Application a reserved keyword in VBA?
    That was my thought... it referrs to the currently running application,Word, Excel, Powerpoint... I don't think you can overwrite it like that.

    Just what are you trying to do?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

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



Click Here to Expand Forum to Full Width