You could create macros in the workbook to open and run those (hard work?)
or try this
xlApp.ExecuteExcel4Macro "alert(""Hello"")"
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"donovanm " wrote in message
...
Thanks for the reply. However, I had already tried your suggestion
thinking it would work, but it doesnt seem to!
Here is a snippet from my code
Set xlApp = CreateObject("Excel.Application")
xlApp.workbooks.Open sMilestonePathFileName
xlApp.Visible = True
xlApp.worksheets(sPPRMilestoneSheetName).Select
xlApp.MsgBox "Hello"
Lines 1 to 4 run fine, but the code fails when it reaches line 5. The
error message I get is as follows:
Run-time error '438':
Object doesnt support this property or method.
Any suggestions will be greatly appreicated!
thanks,
Matt
---
Message posted from http://www.ExcelForum.com/