E
Essam Salah
Hi All
I need to create a menu item in word that will get the selection of the
current open Excel sheet and then creates a table in word and populate it
with the data within the selection of Excel.
I know how to create the menu, create word table , etc...
but how to get a ref. to the Excel window
I tried the following code :
<------------------- >
Dim excl As Excel.Application
Set excl = CreateObject("Excel.Application")
MsgBox excl.Windows.Count
</------------------>
but it gives [ 0 ] , while I have one Excel window open !!!
Any Advice
Essam
I need to create a menu item in word that will get the selection of the
current open Excel sheet and then creates a table in word and populate it
with the data within the selection of Excel.
I know how to create the menu, create word table , etc...
but how to get a ref. to the Excel window
I tried the following code :
<------------------- >
Dim excl As Excel.Application
Set excl = CreateObject("Excel.Application")
MsgBox excl.Windows.Count
</------------------>
but it gives [ 0 ] , while I have one Excel window open !!!
Any Advice
Essam