LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default HELP! How to Use VBA to Activate Embedded Word Doc?

I have a sheet with an embedded Word doc in it. When you double-click the
Word icon in the sheet, the doc opens. What I'd really like to do, though, is
cover up the icon with a more user-friendly AutoShape that has instructions
on it. (You know, "Click here to go to...") I've tried attaching a simple
macro to the AutoShape to open the document hidden underneath. (The Word icon
is "Object 10"):

Sub Activate_Object_Macro()
ActiveSheet.Shapes("Object 10").Activate
End Sub

But I get an error message saying the object doesn't support this method.
Then I tried this:

Sub Activate_Object_Macro()
Application.ActivateMicrosoftApp xlMicrosoftWord
ActiveSheet.Shapes("Object 10").Select
End Sub

But all that that is, well, select the icon--it doesn't open the doc. What
am I missing?

Of course, if I could just reformat the icon itself to look like what I
want, this wouldn't be necessary. Is that possible, either?

Please help--I'm supposed to show this thing at a meeting this afternoon!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel with an embedded Word Doc Scream New Users to Excel 0 August 2nd 06 11:14 AM
Extract MS Excel Data embedded in MS Word qualityprocess Excel Discussion (Misc queries) 0 April 20th 06 05:52 PM
Embedded Word document bforster1 Excel Discussion (Misc queries) 0 November 2nd 05 08:50 PM
Embedded Excel Spreadsheet in MS Word Corrupted Mary Excel Worksheet Functions 0 March 24th 05 05:29 PM
Embedded word doc changed to image-need to change back to word. cflores Excel Discussion (Misc queries) 0 January 23rd 05 06:45 AM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"