Retrieve the Path for Linked OLE Objects

  • Thread starter Thread starter René
  • Start date Start date
R

René

Good afternoon

I have been using the vba code supplied in Microsoft's kb article
199066 in order to retrieve the path for linked OLE objects. This
always worked fine in Acc2000.

Now, we changed to Acc2002 and the code does not work anymore. The
problem is that the data in strChunk (see below or in kb article
199066) does not contain any backslashes. In this way, the path cannot
be extracted. The data in strChunk , indeed looks very differently
now. (compared with Acc2000)

strChunk = StrConv(objOLE, vbUnicode)
pathStart = InStr(1, strChunk, ":\", 1) - 1
'If mapped drive path not found, try UNC path.
If pathStart <= 0 Then pathStart = InStr(1, strChunk, "\\", 1)

We use WIN2000 and OFFXP and I'd like to get the path name of an
embedded picture.

Does anybody has an idea, how I have to proceed in ACC2002?

Your answer is highly appreciated.

René Probst
Switzerland
 
Hi

I've found the problem by myself. The pictures were not linked but imbedded.
;-)

René Probst
Switzerland
 
Back
Top