PC Review


Reply
Thread Tools Rate Thread

Cells.Find and PivotTables

 
 
Notaguru
Guest
Posts: n/a
 
      5th Sep 2008
I'm trying to use VBA and Cells.Find to search a Pivot Table; if found,
expand the details of that row.

As the fields are all collapsed, it finds items in the first column (A)
only. If I manually expand all fields it will find my search string.

Any suggestions?


Code:
Private Sub BtnFind_Click()
Dim partNumer As String

partNumber = TextPart.Value

Range("A1").Select

Cells.Find(What:=partNumber, After:=ActiveCell, LookIn:=xlFormulas,
LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate

Selection.ShowDetail = True
End Sub
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple code to find the empty cells in a range and cells with number Subodh Microsoft Excel Programming 2 30th Apr 2010 06:05 AM
RE: Need Cells.find to find first number in a row which is >8000 Trevor Williams Microsoft Excel Misc 3 15th Dec 2008 01:29 PM
how to find cells that refer to data in other cells in excel Aman Microsoft Excel Misc 8 2nd Dec 2007 10:02 PM
Excel- find the last filled cells in column with empty cells sde_us@swbell.net Microsoft Excel Programming 1 28th Sep 2007 12:20 AM
How to find multiple cells/replace whole cells w/data =?Utf-8?B?ZGN1cnlsbw==?= Microsoft Excel Misc 2 30th Nov 2005 08:06 PM


Features
 

Advertising
 

Newsgroups
 


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