VBA code to open embedded Excel file

  • Thread starter Thread starter NiceCalifGuy
  • Start date Start date
N

NiceCalifGuy

Is there VBA that will open am embedded Excel file. Can it then save this Excel
file to the desktop?
 
You can open up the embedded excel object in an excel instance with the
following line of code.
ActiveWindow.Selection.ShapeRange(1).OLEFormat.DoVerb 2

From there on you can grab a reference to that open object and save it.
--
Regards
Shyam Pillai

Handout Wizard
http://www.mvps.org/skp/how/
 
Thanks..that code works great to open it. Now how do I grab a reference to this
open object then save it to the desktop.
 

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

Back
Top