VBA finding a cell based on the value of a pivot table

paeddi

New Member
Joined
Aug 17, 2019
Messages
7
Hi together,

I would like to jump (eventually with VBA) from a cell in a pivot table to find the cell with that value in the original table.
I imagine that the current value has to be copied to the clipboard and that the value has to be searched (CTRL+F) in the source table.

How does the solution looks likes?

Thanks in advance for your response.

Patrick
 
Thank you, I'm using German version of Professional plus 2016 Version 1907

I get the message: address = 'Mastertabelle Einzel'!S2:S67

Kind regards to Mexiko (btw, my wife is mexican)
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
What is the range of cells in sheet " Mastertabelle Einzel" where you have your data?

Saludos a la paisana de México!
 
Upvote 0
Forget the above, try the following:
Select a data in the pivot table and run the macro.

Code:
Sub finding_cell()
    Dim f As Range, wItem As String
    wItem = ActiveCell.Value
    If wItem = "" Then Exit Sub
    Sheets("Mastertabelle Einzel").Select
    Set f = Cells.Find(wItem, , xlValues, xlWhole)
    If Not f Is Nothing Then
      f.Select
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,956
Members
448,535
Latest member
alrossman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top