Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Find PivotTable in Excel

Find PivotTable in Excel

Scheduled Pinned Locked Moved Visual Basic
helpquestionannouncement
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bomb_shell
    wrote on last edited by
    #1

    Can someone help me with an If statement? I have one Excel sheet with gobs of data and several sheets thereafter with pivot tables. My code will eventually sequence through the various sheets and update the PivotTables. I can't figure out the command to determine if the sheet contains (and ultimately select a cell in) a PivotTable. TIA, Bomb_Shell (noob)

    N M 2 Replies Last reply
    0
    • B Bomb_shell

      Can someone help me with an If statement? I have one Excel sheet with gobs of data and several sheets thereafter with pivot tables. My code will eventually sequence through the various sheets and update the PivotTables. I can't figure out the command to determine if the sheet contains (and ultimately select a cell in) a PivotTable. TIA, Bomb_Shell (noob)

      N Offline
      N Offline
      ne0h
      wrote on last edited by
      #2

      AFAIK, Pivot tables are auto generated based on the data you selected for pivot in Excel. So, why are you changing the Pivot? Instead change the source data, Pivot table will automatically update itself.


      "hi, I am explorer.exe. sometimes when you are doing anything at all, I will just freeze for ten minutes. All of my brother and sister windows will also freeze, because they are sad for me. Maybe we will come back, maybe not, it will be a surprise!"

      1 Reply Last reply
      0
      • B Bomb_shell

        Can someone help me with an If statement? I have one Excel sheet with gobs of data and several sheets thereafter with pivot tables. My code will eventually sequence through the various sheets and update the PivotTables. I can't figure out the command to determine if the sheet contains (and ultimately select a cell in) a PivotTable. TIA, Bomb_Shell (noob)

        M Offline
        M Offline
        Mitch F
        wrote on last edited by
        #3

        I think this is what you may be looking for: http://answers.yahoo.com/question/index?qid=20070918114411AAsehq7[^] (look at the last post in the list). I hope this helps.

        B 1 Reply Last reply
        0
        • M Mitch F

          I think this is what you may be looking for: http://answers.yahoo.com/question/index?qid=20070918114411AAsehq7[^] (look at the last post in the list). I hope this helps.

          B Offline
          B Offline
          Bomb_shell
          wrote on last edited by
          #4

          That kind of helps. I was looking more for something like: If the active sheet has a pivot table <-- this is the part I'm stumped on. Then PivotCache.Refresh Bomb_Shell (noob)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups