+ Reply to Thread
Results 1 to 2 of 2

Using Row Labels from Pivot Tables into VBA code

  1. #1
    Registered User
    Join Date
    09-04-2014
    Location
    Atlanta, GA
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Using Row Labels from Pivot Tables into VBA code

    vlookupvba.jpg

    How do I make the row labels in red string variables for the worksheet I want to search using the values below as the lookup values in a vlookup formula in VBA in the next column? I have the formula of the v lookup formula as if it was in a cell to demonstrate what i mean. If there is better way to do it without having to reference the Pivot tables that would work as well.


    =vlookup("C52498",'1039264'!C1:K16,4,0)
    Attached Images Attached Images

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Using Row Labels from Pivot Tables into VBA code

    Try using GETPIVOTDATA
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Row Labels - Pivot Tables
    By rickettsd96 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2016, 08:45 AM
  2. Modify Row Labels on Multiple Pivot Tables
    By bhenlee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2015, 04:57 PM
  3. Pivot tables and labels
    By muminek in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2012, 04:16 PM
  4. Pivot Tables - Listing Filtered Labels
    By learning_vba in forum Excel General
    Replies: 0
    Last Post: 06-13-2011, 03:50 PM
  5. [SOLVED] Pivot Tables and Column Labels
    By Mark McDonough in forum Excel General
    Replies: 2
    Last Post: 06-08-2006, 10:10 AM
  6. excel graphs data labels in Pivot tables
    By Rosa Campos in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-09-2006, 03:00 PM
  7. Replies: 2
    Last Post: 04-05-2006, 11:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1