How can a excel file is open from ms word through a code ? Kindly advised.
Thanks
This question has already been answered in other threads, anyway:
[CODE=vb]dim obj1 as object
set obj1 = createobject("e xcel.applicatio n")
obj1.visible=tr ue
obj1.wokbooks.o pen("c:\mybook. xls")[/CODE]
will do.
Remember that if you use some macro recorded with excel in your word's VBA, the xl constants wont work. search in the object browser (F2) or while debuging the code for its numeric value.
Comment