Sorry - about the other postings , I kept getting an error when I posted -
and I though I had to reports.
Thanks for the response, Thats what I thought - but I was unable to do this.
here is the code I used(from
VB.net):
pappXL.AddIns.Add("C:\Program Files\Microsoft
Office\Office\Library\Analysis\Analys32.xll")
pappXL.AddIns.Add("c:\Program Files\Microsoft
Office\Office\Library\Analysis\ATPVBAEN.XLA")
It did not work. I also tried using this code in the EXCEL module:
Application.AddIns.Add ("C:\Program Files\Microsoft
Office\Office\Library\Analysis\Analys32.xll")
Application.AddIns.Add ("c:\Program Files\Microsoft
Office\Office\Library\Analysis\ATPVBAEN.XLA")
It also did nothing. Where? and How? do I add the addins to my code?
Thanks
"Tom Ogilvy" wrote:
When you automate excel, addins are not loaded - you need to load the
analysis toolpak yourself with your code.
--
Regards,
Tom Ogilvy
"Dave Gruzewski" wrote in message
...
Hi,
I am trying to automate and excel workbook from vb.net code
calling a module with this command(vb.net):
pappXL.Run("ImportFromCPMonitoring")
This works totally fine - but when it gets to anywhere in the spreadsheet
where EDATE is used in a formula - it fails. I am totally at my wits end
with
this. Is there any reason why this function would not work? - I stop the
code
while it is running and check the tools-addins and both analysis packs are
checked.
Please help
Thanks