Strange error message - Permission Denied??? 
Author Message
 Strange error message - Permission Denied???

Well MS Outlook 2000 has come up with another strange error message that has
nothing to do with what is going on so I wanted to see if anyone else has
had this message and knows what to do.

Dim myolapp As Application
Dim sendToContact As ContactItem
Dim myItem As MailItem
Dim oaExcel As Excel.Application

Set oaExcel = Nothing
Set oaExcel = New Excel.Application
oaExcel.Workbooks.Open "f:\survey business\anyfilename.XLS"
oaExcel.Visible = True

Many times it works great and then after running several times it decides
that it wants to take a break and starts sending me the message Permission
Denied on the excel.workbooks.open line.  Naturally there are NO permissions
on the file except Full Control for Administrator - me and there are NO
permissions on the folders above it at any level.  I have even used task
manager (windows 2000 Profess) and KILLED dead the Excel processes and still
no change.  Go away for a couple of hours and come back and the same program
runs fine.  This has happened several times over the last 2 or 3 days and is
getting very annoying.  No other process is accessing these files.  So it is
obvious to the casual observer that Outlook is generating its error message
but has nothing to do with permissions as defined by W2K or Office 2K.

I would certainly appreciate a little help here - naturally these problems
only occur when I am trying to get something done on a schedule.

Thanks
George Mizzell
MCSE - W2K and MCSE - NT



Sun, 16 Jan 2005 01:10:57 GMT  
 Strange error message - Permission Denied???
I have got some errors in the past similar, my advice would be to either
use GetObject to get a reference to an existing "freindly" excel object
in memory or to not keep destroying it and just maintaining the excel
object
Regards,
David Quaid

www.escapesoftware.com


Quote:
> Well MS Outlook 2000 has come up with another strange error message that
has
> nothing to do with what is going on so I wanted to see if anyone else has
> had this message and knows what to do.

> Dim myolapp As Application
> Dim sendToContact As ContactItem
> Dim myItem As MailItem
> Dim oaExcel As Excel.Application

> Set oaExcel = Nothing
> Set oaExcel = New Excel.Application
> oaExcel.Workbooks.Open "f:\survey business\anyfilename.XLS"
> oaExcel.Visible = True

> Many times it works great and then after running several times it decides
> that it wants to take a break and starts sending me the message Permission
> Denied on the excel.workbooks.open line.  Naturally there are NO
permissions
> on the file except Full Control for Administrator - me and there are NO
> permissions on the folders above it at any level.  I have even used task
> manager (windows 2000 Profess) and KILLED dead the Excel processes and
still
> no change.  Go away for a couple of hours and come back and the same
program
> runs fine.  This has happened several times over the last 2 or 3 days and
is
> getting very annoying.  No other process is accessing these files.  So it
is
> obvious to the casual observer that Outlook is generating its error
message
> but has nothing to do with permissions as defined by W2K or Office 2K.

> I would certainly appreciate a little help here - naturally these problems
> only occur when I am trying to get something done on a schedule.

> Thanks
> George Mizzell
> MCSE - W2K and MCSE - NT



Sun, 16 Jan 2005 22:41:46 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Error Number : 70 and Error Description : Permission Denied

2. Compile Error - Permission Denied (Error 70)

3. Permission Denied message

4. Permission denied when using Input boxes and message boxes

5. Permission Denied(compile error) with opendatabase statement

6. Permission Denied (Error 70)

7. error 70: permission denied for MsgBox

8. "Permission denied" Error

9. permission denied error when trying to call send method of NewMail object

10. Repost: Denied access - error 3051 - permissions

11. Permission Denied error fix for Visual Basic 5.0

12. winNT: run-time error 70, permission denied ?

 

 
Powered by phpBB® Forum Software