Consulting

Results 1 to 2 of 2

Thread: Hello my fellow nerds

  1. #1
    VBAX Regular
    Joined
    Sep 2013
    Posts
    37
    Location

    Hello my fellow nerds

    You guys are awesome. I love this site. I just wanted to say thanks and hello. I also have a post I am looking for help on.

    Sub esis()
    Dim pf As PivotField
    Dim pi As PivotItem
    Application.ScreenUpdating = False
     Set pf = ActiveSheet.PivotTables("PivotTable4").PivotFields("TRAN_GROUP")
      With pf
    If pi.TRAN_GROUP = "ESIS" _
        Or pi.TRAN_GROUP = "ESISFF" _
        Or pi.TRAN_GROUP = "ESISFFC" _
        Or pi.TRAN_GROUP = "ESISMN" _
        Or pi.TRAN_GROUP = "PMIGEN1ESIS" Then
            pi.Visible = False
         Else
           pi.Visible = True
    End If
                                  Next pi
                                    End With
    Application.ScreenUpdating = True
    End Sub
    
    Sub esis2()
    Dim pf As PivotField
    Dim pi As PivotItem
    Application.ScreenUpdating = False
    Set pf = ActiveSheet.PivotTables("PivotTable4").PivotFields("TRAN_GROUP")
      With pf
    Select Case pi.Caption
    Case "ESIS", "ESISFF", "ESISFFC", "ESISMN", "PMIGEN1ESIS"
        pi.Visible = True
    Case Else
        pi.Visible = False
    End Select
     End With
     Application.ScreenUpdating = True
    End Sub
    I am trying different things to be able to select multiple Items in a pivot field. I want to be able to toggle it on and off with a hotkey. can anyone help me?

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Nobody reads these Intro Threads very often. You need to post your question in the Excel Forum/Folder.

    Please read the Forum FAQs Linked to in my Signature.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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