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.
 
Back
Top