Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Leo Leo is offline
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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" wrote in message ...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP: CreateObject("Excel.Application") IIS 6.0 Win2003 Mau[_2_] Excel Programming 0 July 20th 05 11:45 AM
Movefile "Permission Denied" Gordon Gecko[_2_] Excel Programming 0 June 9th 05 08:44 PM
Run-Time error "70" Permission Denied Audrey Excel Programming 12 February 4th 05 10:07 PM
Error "Permission denied" when printing Web Browser control from button on userform, Charles Jordan Excel Programming 0 July 8th 04 04:19 PM
CreateObject("Excel.Application") - Access denied Luca[_2_] Excel Programming 0 February 6th 04 01:21 PM


All times are GMT +1. The time now is 03:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"