LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Excel object "Access denied" error

I am using VB.NET to open and read info from Excel spreadsheets using code
similar to this:

Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlBooks As Excel.Workbooks
Dim xlSheets As Excel.Sheets
Dim xlSheet As Excel.Worksheet

xlApp = New Excel.Application
xlBook = xlBooks.Open(strPath & "SheetList.xls", True)
xlBooks = xlApp.Workbooks etc.

This used to work just fine, until I was trying to get similar code running
through ASP.NET, and was fiddling with permissions trying to get that to
work. Having given up on that, I now find that the VB.NET app, which runs
locally, is failing with an "access denied" error, which happens when it
tries to create the Excel object (xlApp = New Excel.Application). So clearly
I have screwed up access permissions. I could use some help un-screwing
this. I have already tried uninstalling and reinstalling the app and the
whole Office suite, I have tried clearing out anything in the registry that
might apply, and I have re-set Windows permissions in the folders this stuff
is in.



 
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
"access denied" message when open Excel, MS 2007 piciu Excel Discussion (Misc queries) 1 February 12th 09 01:32 AM
How do I recover from "Access Denied" in Excel? 3 Cabbage Excel Discussion (Misc queries) 2 May 11th 06 10:04 AM
Excell files showing "Read Only" access denied Scott L Excel Programming 1 November 30th 04 12:27 AM
CreateObject("Excel.Application") - Access denied Luca[_2_] Excel Programming 0 February 6th 04 01:21 PM
"Programmatic Access to be Denied" displays when running macro on excel in XP Stephen Fong Excel Programming 3 October 21st 03 09:19 AM


All times are GMT +1. The time now is 05:18 PM.

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

About Us

"It's about Microsoft Excel"