Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetOLELocation gets Permission Denied

Status
Not open for further replies.

TimLarkin

Programmer
Mar 8, 2001
159
US
Help. I have a linked OLE .xls in my report. I'm need to change the .xls the link points to at run time dependent on who the user is. In my VB code:
objOLE.SetOleLocation App.Path & "/TimToDo.xls"
objOLE is a OLE Object in the report.
I keep getting a "Permission Denied" msg. (the .xls & report are not open any place else).

I posted this before but got no responses. Since then, I found out this is a known bug. However, the workaround says to use the SetOleLocation in the section_format routine, but how do I do that at run time from a VB app? Code, anyone? (getting very Desperate!!!!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top