ok, thanks!
>This could be all done from Access; however, I think the better way would be
>to write a macro to do what you want in the Excel template that will execute
[quoted text clipped - 6 lines]
>>
>> >[Amt]*[Percent],0)))

Signature
OOPs a typo...the statement that DOES NOT work is:
AdjAmt: Sum(IIf([TYPE]=2 And Left(Date(),2)="07",[Amt]*[Percent],IIf([TYPE]=1,
>[Amt]*[Percent],0)))
one thing......I really do not need the sheet opened at all...unless the act
of opening is necesary to refresh the pivots, turn off auto-refresh and save
to a share.....
It sounds like I need to do this in Excel but as part of the vba, I must
close up everything on the way out...I'd assume in Access I'd see the sheet
open, refresh save and close...?
Is there an Excel option like 'RunMacro on Open or something' ?
I found the code to refresh to pivots and I know how to save it I think...
just not sure how Excel knows to run the macro when opened.....
Finally I assume control is returned to MsAccess when done...?
>This could be all done from Access; however, I think the better way would be
>to write a macro to do what you want in the Excel template that will execute
[quoted text clipped - 6 lines]
>>
>> >[Amt]*[Percent],0)))

Signature
OOPs a typo...the statement that DOES NOT work is:
AdjAmt: Sum(IIf([TYPE]=2 And Left(Date(),2)="07",[Amt]*[Percent],IIf([TYPE]=1,
>[Amt]*[Percent],0)))
Klatuu - 26 Jul 2005 21:22 GMT
Yes, there is a way to do that, but exactly how escapes me for the moment.
It may similar to access in naming it autoexe but I think you name it
Auto_Open, but I can't be sure.
If you are working with Excel through Access, it is not necessary to make it
visible.
> one thing......I really do not need the sheet opened at all...unless the act
> of opening is necesary to refresh the pivots, turn off auto-refresh and save
[quoted text clipped - 25 lines]
>
> Message posted via http://www.accessmonster.com