Parent of the embeded excel
Is there a method to know something about the parent of an embeded excel?
|
Parent of the embeded excel
Sub test()
MsgBox Selection.Address MsgBox Selection.Parent.Name MsgBox Selection.Parent.Parent.Name End Sub The last Msgbox will return the Workbook name (mon-embedded) or the enclosing Word doc name & path ( embedded) -- Gary''s Student - gsnu200720 |
All times are GMT +1. The time now is 02:53 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com