Retrieve the Path for Linked OLE Objects

R

Ren? Probst

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
 
R

René

Hi



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

;-)


René Probst
Switzerland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top