View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default Need help referencing an embedded file in Excel

For example:

Sheet1.OLEObjects("Object 1")

You can determine the name of the object by clicking on it and looking at
the Name Box (to the left of the Formula Bar).

--

Vasant

"teepee" wrote in message
...
Hello - might I ask help of the experts here please?

I have a macro in a spreadsheet that references back to a video file

(Mfile=
"test.avi") I want to e-mail the spreadsheet to a friend but in order to

do
so, she will have to separately copy the file test.avi to her c drive to
make the macro function. This is inconvenientas she is not computer
literate.

Obviously I can embed the file test.avi into the spreadsheet as an object,
but how can I change the VB code to directly reference it. I'm no VB

expert,
so any help would be appreciated

Best

TP

--