+ Reply to Thread
Results 1 to 2 of 2

Permission denied in CreateObject(Excel.Application")

  1. #1
    Leo
    Guest

    Permission denied in CreateObject(Excel.Application")

    I am using CreateObject from MS Access to open up an excel workbook. There
    were some changes made on my machine but not sure what and now this error
    appears. Before that it worked fine. Does anyone know what do I need to give
    permission to to get this command to work?


    Thanks

    Leo



  2. #2
    Ron de Bruin
    Guest

    Re: Permission denied in CreateObject(Excel.Application")

    Show us your code Leo

    Is it working if you use this

    CreateObject(Excel.Application.10")

    9 is for 2000
    10 = 2002
    11 =2003

    This small test is working OK for me

    Dim xl As Object
    On Error Resume Next
    Set xl = GetObject(, "Excel.Application")
    If xl Is Nothing Then
    Set xl = GetObject("", "Excel.Application")

    xl.UserControl = True
    xl.Visible = True
    End If
    AppActivate "Microsoft Excel"


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Leo" <[email protected]> wrote in message news:[email protected]...
    >I am using CreateObject from MS Access to open up an excel workbook. There
    > were some changes made on my machine but not sure what and now this error
    > appears. Before that it worked fine. Does anyone know what do I need to give
    > permission to to get this command to work?
    >
    >
    > Thanks
    >
    > Leo
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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