Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error Accessing the OLE Registry

Hello,

I'm hoping someone out there can help me.

Environment: Win2K WS, Win2K Domain User, Excel97
(Standalone user)

I have a macro that creates a userform. This code worked
before, but a recent regression test showed that it was no
longer working. We upgraded from NT 4.0 to Win2K (Server
and nodes) since the code was originally written.

The code:
Dim x as object
Application.VBE.MainWindow.Visible = False
Set TempForm = ThisWorkbook.VBProject.VBComponents.Add(3)

Stepping through with the debugger, the following can be
seen with the cursor on the second statement:
Application.VBE.MainWindow... = <Method 'VBE' of
object '_Application' failed.

Additional Error Information gained by Err is:
Runtime error -2147319780 (8002801c)
Automation Error
Error Accessing the OLE registry.

I believe this is some kind of permission problem, but I
can't find it. The code does work if I am logged in as
administrator, however we would like to avoid this as a
requirement.

I've tried a visual check of permission problems using
regedt32. Regmon did not help, since you have to be
logged in as administrator to use it, but the problem does
not show up with an administrator user. I've even tried a
reformat & new install of Win2K WS and Excel 97.

I would appreciate any help in this matter...





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
error 1406 setup cannot write to registry hp Excel Discussion (Misc queries) 0 June 16th 09 07:08 PM
Compile error when accessing a spreadsheet Nat Excel Worksheet Functions 1 May 13th 08 11:13 PM
error accessing system registry Donna Excel Discussion (Misc queries) 2 July 11th 06 09:22 PM
Error 1402. Setup cannot open the registry key. Jack and Jill Excel Discussion (Misc queries) 1 May 6th 06 09:31 AM
error accessing a protected worksheet Erik Jahre Excel Worksheet Functions 0 February 24th 06 08:32 AM


All times are GMT +1. The time now is 01:47 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"