Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default OLAP Pivot Function

I am new to working with OLAPs in Excel. I am having trouble with the
following whihc will not run no matter how I modify it. Can someone point me
in the right direction or tell me if this just won't work when querying OLAP
Pivots.

I have multiple Pivots and am trying to change the page source.

Sub newFAC()


Dim strfac As String

strfac = Range("DD2")


ActiveSheet.PivotTables("Cases").PivotFields("[Dim Facility].[Facility
Name]").CurrentPageName = "[Dim Facility].[Facility Name]." &
Range("DD2").Text


End Sub

Range("DD2") changes based on the selection in a combo box.

Thanks in advance.

--
Jeff C
Live Well .. Be Happy In All You Do
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default OLAP Pivot Function


--
Jeff C
Live Well .. Be Happy In All You Do


"Jeff C" wrote:

I am new to working with OLAPs in Excel. I am having trouble with the
following whihc will not run no matter how I modify it. Can someone point me
in the right direction or tell me if this just won't work when querying OLAP
Pivots.

I have multiple Pivots and am trying to change the page source.

Sub newFAC()


Dim strfac As String

strfac = Range("DD2")


ActiveSheet.PivotTables("Cases").PivotFields("[Dim Facility].[Facility
Name]").CurrentPageName = "[Dim Facility].[Facility Name]." &
Range("DD2").Text


End Sub

Range("DD2") changes based on the selection in a combo box.

Thanks in advance.


Tried this:

ActiveSheet.PivotTables("Cases").PivotFields("[Dim Facility].[Facility
Name]").CurrentPageName = "[Dim Facility].[Facility Name].[" & strfac & "]"

I get an "unable to get PivotTables property of the worksheet class" error

can anyone help?



--
Jeff C
Live Well .. Be Happy In All You Do

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
OLAP Pivot Table problem Dmitri Excel Discussion (Misc queries) 0 May 21st 08 04:53 PM
2007 Pivot Table or OLAP Add-in OLAPUser Excel Discussion (Misc queries) 1 January 15th 07 04:18 AM
Excel 2007 Pivot OLAP Reinfried Excel Discussion (Misc queries) 0 July 27th 06 11:09 AM
Pivot Table - OLAP Cube dlinvfc Excel Discussion (Misc queries) 0 January 31st 06 12:26 AM
zero values in olap pivot table report johnE Excel Discussion (Misc queries) 0 December 21st 05 07:42 PM


All times are GMT +1. The time now is 09:58 AM.

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

About Us

"It's about Microsoft Excel"