
Signature
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html
Dear Debra, Thanks for replying.
Even if I change the 1st row (A2) to that Invoice number, it would not
appear (tried that). Its one of those days when it happens. lol.
The range is OK coz I use the Dynamic Data Range. (thanks to you)
(before this I would range the whole column, 60 columns and 1mb bcomes 20mb
for just one Pivot Table)
The invoice number is the 1st column, that makes it the most primary column.
And I used this VBA, hoping to flush it out.: (got this through one of your
helps!)
Private Sub Worksheet_Change(ByVal Target As Range)
Dim pt As PivotTable
Dim pf As PivotField
Dim pi As PivotItem
Set pt = Worksheets("VR-9-1-Invoice Report").PivotTables(1)
Set pf = pt.PageFields("Inv-No")
If Target.Address = "$E$1" Then
Application.EnableEvents = False
For Each pi In pf.PivotItems
If LCase(pi.Value) = LCase(Target.Value) Then
pf.CurrentPage = pi.Value
Exit For
End If
Next pi
Application.EnableEvents = True
End If
End Sub
The other 2 would appear.
It would not be fair to get you to trouble shoot this, but if you ever found
the solution, maybe put it on the Contexture website. I visit the website
quite often.
Thank you.
> Is the invoice number in the source data, in the range that's used for
> the pivot table? Maybe it's in the last few rows, and isn't being included?
[quoted text clipped - 49 lines]
> > Thanks all!!!
> > I am on the XLS 2000.
Qull666@hotmail.com - 16 May 2007 08:55 GMT
Dear Debra D,
If you would like a copy of the file with this weird thing, just send me an
email to stanlee_wong@yahoo.com. Thank you.
Debra Dalgleish - 17 May 2007 05:29 GMT
The caption for that item has been overwritten somehow. It appears as an
empty label at the bottom of the list of items. You could use a macro to
reset the captions for the page fields:
'=======================
Sub ResetPageCaptions()
'retrieve original field names
'if captions have been typed into pt
Dim pt As PivotTable
Dim pi As PivotItem
On Error GoTo errHandler
Application.ScreenUpdating = False
For Each pt In ActiveSheet.PivotTables
pt.ManualUpdate = True
For Each pi In pt.PageFields(1).PivotItems
pi.Caption = pi.SourceName
Next pi
pt.RefreshTable
pt.ManualUpdate = False
Next pt
exitHandler:
Set pi = Nothing
Set pt = Nothing
Application.ScreenUpdating = True
Exit Sub
errHandler:
GoTo exitHandler
End Sub
'=============================
> Dear Debra, Thanks for replying.
>
[quoted text clipped - 91 lines]
>>>Thanks all!!!
>>>I am on the XLS 2000.

Signature
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html
Qull666@hotmail.com - 17 May 2007 06:29 GMT
Dear Debra,
It works. Thank you so much.
> The caption for that item has been overwritten somehow. It appears as an
> empty label at the bottom of the list of items. You could use a macro to
[quoted text clipped - 128 lines]
> >>>Thanks all!!!
> >>>I am on the XLS 2000.