Quantcast
Channel: Project Developer
Viewing all articles
Browse latest Browse all 50

Using GetObject to access a Project file but getting Error 70:Permission Denied

$
0
0
Using Project 2010..
I have some VBA code that uses GetObject and I am passing the full path name of the file to the function which is stored in a Text box on a form. For example...

Assume the Text box is named "txtFile" on a form that contains the full file name

Public Sub Test
Dim prjTest as Project

Set prjTest = GetObject(me.txtFile.Value)
prjTest.Activate

...

End Test

When the code gets to the line with the "GetObject" function, I get "Error 70: Permission Denied." However, if the...

Read more

Viewing all articles
Browse latest Browse all 50

Trending Articles