Forum Discussion

kevintl98's avatar
kevintl98
Copper Contributor
Nov 16, 2021
Solved

Using VBA to auto-populate based off of slicer selection

Hello,   I am fairly new to using VBA so I am unsure on how to write code to auto-populate H5 with the respective radius value based off of the tank selection slicer. If anyone could help me out or...
  • Riny_van_Eekelen's avatar
    Nov 16, 2021

    kevintl98 You didn't upload your file, so I made something myself. Since you only will select on tank at the time, you can use AGGREGATE (sum) in combination with visible cells only to pick up the value of the selected slicer option.

     

    See attached.

     

Resources