Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Cubevalue (Excel 2007) versus Cubecellvalue (Excel 2003)

I have developed a spreadsheet in Excel 2003 which attaches to an analysis
services cube, using the analysis services add-in function "cubecellvalue"
plus appropriate mdx statements to build the sheet in the format required.

However in Excel 2007 this only works if I alter the sheet to use the
built-in function "cubevalue", which then does not work in Excel 2003.

My problem is that I have users who need to share spreadsheets, and they are
using a mixture of versions. Do you think it is possible for me to create
and distribute a function of my own called "cubevalue" in Excel 2003 which
would then make the sheets compatible with Excel 2007 ? Or does Microsoft
have a compatibility aid that I am not aware of which would avoid this
problem ?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Cubevalue (Excel 2007) versus Cubecellvalue (Excel 2003)

Perhaps check the version number of Excel to set-up the sheet and run the
appropriate code with logic like this:

If Excel.Version 12 Then
alter sheet to run built-in cube
Else
run add-in cube
End If

Mike F
"Quiller38" wrote in message
...
I have developed a spreadsheet in Excel 2003 which attaches to an analysis
services cube, using the analysis services add-in function "cubecellvalue"
plus appropriate mdx statements to build the sheet in the format required.

However in Excel 2007 this only works if I alter the sheet to use the
built-in function "cubevalue", which then does not work in Excel 2003.

My problem is that I have users who need to share spreadsheets, and they
are
using a mixture of versions. Do you think it is possible for me to create
and distribute a function of my own called "cubevalue" in Excel 2003 which
would then make the sheets compatible with Excel 2007 ? Or does Microsoft
have a compatibility aid that I am not aware of which would avoid this
problem ?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Cubevalue (Excel 2007) versus Cubecellvalue (Excel 2003)

Suggest change

If Excel.Version 12 Then


to

If Val(Application.Version) = 12 Then

Regards,
Peter T

"Mike Fogleman" wrote in message
. ..
Perhaps check the version number of Excel to set-up the sheet and run the
appropriate code with logic like this:

If Excel.Version 12 Then
alter sheet to run built-in cube
Else
run add-in cube
End If

Mike F
"Quiller38" wrote in message
...
I have developed a spreadsheet in Excel 2003 which attaches to an

analysis
services cube, using the analysis services add-in function

"cubecellvalue"
plus appropriate mdx statements to build the sheet in the format

required.

However in Excel 2007 this only works if I alter the sheet to use the
built-in function "cubevalue", which then does not work in Excel 2003.

My problem is that I have users who need to share spreadsheets, and they
are
using a mixture of versions. Do you think it is possible for me to

create
and distribute a function of my own called "cubevalue" in Excel 2003

which
would then make the sheets compatible with Excel 2007 ? Or does

Microsoft
have a compatibility aid that I am not aware of which would avoid this
problem ?





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Cubevalue (Excel 2007) versus Cubecellvalue (Excel 2003)

Okay thanks chaps, I will go down the route of testing for version and then
use a macro to change the formulas depending on which version it is in.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 versus Excel 2003 & Excel 97-2003 fully compatible Bumpersnesty Excel Worksheet Functions 0 April 26th 10 09:44 PM
cell color versus gridlines - Excel 2003 Jean[_2_] Excel Discussion (Misc queries) 1 January 17th 10 07:01 PM
'Costom View' in Excel 2003 versus Excel 2007 Byaym Excel Discussion (Misc queries) 0 September 18th 08 10:55 AM
Excel 97 Versus 2003 Annie Excel Worksheet Functions 1 February 28th 07 06:03 PM
CUBEVALUE Function - Excel 2007 Kresimir Zoric Excel Worksheet Functions 0 June 29th 06 06:11 PM


All times are GMT +1. The time now is 04:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"