+ Reply to Thread
Results 1 to 2 of 2

Slicers -- Change ' Name to use in formulas ' value of the Slicer Setting

  1. #1
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2016
    Posts
    110

    Slicers -- Change ' Name to use in formulas ' value of the Slicer Setting

    Dear all,

    I have a requirement to add Slicer and modify Slicer settings.

    I use the following code to create "Age" Slicer for the field "Age" referring to the Pivot table " PivotTable1 " whose Name is "Age_Slicer" and Caption is " Age Values "

    Please Login or Register  to view this content.
    However, I need to modify the Slicer to have the Age values to be displayed over 5 columns. I recorded my action and see the following auto-generated code:

    Please Login or Register  to view this content.
    I understand that I need to get control of the Slicer setting ' Name to use in formulas ' to be able to achieve my goal. Currently, i'm unable to do the same.

    Request your help to be able to define the Slicer setting ' Name to use in formulas ' through VBA

    This is very important as I have to create multiple Slicers for various Pivot Tables and "Age" field is the most common Slicer that I would need.

    Thanks,
    Vinod Krishna

  2. #2
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2016
    Posts
    110

    Re: Slicers -- Change ' Name to use in formulas ' value of the Slicer Setting

    Here is the solution guys:

    let's say "Slicer_Age" is the ' Name to use in formulas ' of the Slicer Setting.

    Please Login or Register  to view this content.
    Name parameter is just after choosing the field parameter

+ 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. [SOLVED] Macro to Run when Slicer Selection is Changed (multiple slicers)
    By jcanlas in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-09-2021, 11:41 AM
  2. Slicers - how to update one slicer for all charts?
    By kreinking in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-06-2016, 03:35 PM
  3. [SOLVED] Disconnect Slicers, Change Pivot Table Source, Reconnect Slicers: a problem
    By Geoff. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2015, 02:27 PM
  4. Replies: 1
    Last Post: 06-01-2015, 12:37 AM
  5. [SOLVED] Pivot Slicers from multiple Caches - problem with 2nd Slicer displaying incorrect data
    By matt4003 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-14-2013, 03:06 AM
  6. [SOLVED] Change Chart Title Depending on a Slicer - slicer advice
    By JungleJme in forum Excel General
    Replies: 8
    Last Post: 08-17-2012, 07:59 AM
  7. [SOLVED] change default setting of accept labels in formulas
    By Samad in forum Excel General
    Replies: 3
    Last Post: 07-08-2006, 12:10 PM

Tags for this Thread

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