![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Apologies, this is a cross-post from oledb.olap. To my understanding, using VBA in my calculated members should work "out of the box" Simply put: I cant seem to get VBA funnctions to work in my calculated members. I try: strToMember("[Time].[All Time].[" + VBA!year(now()) + "]") And it gives me a "token not valid" error. Im running AS SP3. Anyone know what im doing wrong? |
#3
| |||
| |||
|
|
Peter Koller wrote: Apologies, this is a cross-post from oledb.olap. To my understanding, using VBA in my calculated members should work "out of the box" Simply put: I cant seem to get VBA funnctions to work in my calculated members. I try: strToMember("[Time].[All Time].[" + VBA!year(now()) + "]") And it gives me a "token not valid" error. Im running AS SP3. Anyone know what im doing wrong? Leave out the VBA! part, just type year(now()), that should work |
#4
| |||
| |||
|
|
Sorry, im still getting the "token not valid error". When i register my own libraries it works, just not with the supposedly pre regsitered vba functions.. "Hans van Kruijssen" <hans.vanKruijssen (AT) agilisys (DOT) com> skrev i melding news:edAadmDWEHA.2844 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Peter Koller wrote: Apologies, this is a cross-post from oledb.olap. To my understanding, using VBA in my calculated members should work "out of the box" Simply put: I cant seem to get VBA funnctions to work in my calculated members. I try: strToMember("[Time].[All Time].[" + VBA!year(now()) + "]") And it gives me a "token not valid" error. Im running AS SP3. Anyone know what im doing wrong? Leave out the VBA! part, just type year(now()), that should work |
![]() |
| Thread Tools | |
| Display Modes | |
| |