Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2017, 06:49 AM
tyjulianchen tyjulianchen is offline Using only one of 4 slicers to triger Workbook_SheetTableUpdate event Windows 10 Using only one of 4 slicers to triger Workbook_SheetTableUpdate event Office 2010 64bit
Novice
Using only one of 4 slicers to triger Workbook_SheetTableUpdate event
 
Join Date: Feb 2017
Posts: 3
tyjulianchen is on a distinguished road
Question Using only one of 4 slicers to triger Workbook_SheetTableUpdate event

I got 4 slicers - "Class", "Course", "Presenter" and "Topic" to update an identical pivot table. However, I just want the specific slicer, say the bottom layer of the 4 slicers - "Topic" to triger the Workbook_SheetTableUpdate event other than the rest ones otherwise. How can I modify the VBA script?



Alternatively, if I use Worksheet_PivotTableUpdate event
other than above mentioned Workbook_SheetTableUpdate event , how to change the code?

and the last but not least, it must be a way to run the VBA behind the scenes making it invisible while the cursor moves around the worksheet, right? How to make it happen?
Attached Files
File Type: xlsm test.xlsm (202.5 KB, 10 views)
Reply With Quote
  #2  
Old 03-15-2017, 03:58 AM
tyjulianchen tyjulianchen is offline Using only one of 4 slicers to triger Workbook_SheetTableUpdate event Windows 10 Using only one of 4 slicers to triger Workbook_SheetTableUpdate event Office 2010 64bit
Novice
Using only one of 4 slicers to triger Workbook_SheetTableUpdate event
 
Join Date: Feb 2017
Posts: 3
tyjulianchen is on a distinguished road
Smile

It's a pity that no reply till now. The good news is that I've got the solution from somewhere else. Let me share it here with those who concerned:

Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
If Application.CountA(Range("I43:I44")) = 1 Then
play
End If
End Sub

Sub play()
Application.ScreenUpdating = False 'disable screen updating
With ActiveSheet
.Hyperlinks.Add Anchor:=.Range("J43"), _
Address:=Range("I43").Value, _
ScreenTip:="Play Video", _
TextToDisplay:="Watch"
Range("J43").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
End With
Application.ScreenUpdating = True 'enable screen updating
End Sub
Reply With Quote
Reply

Tags
pivottable, slicer



Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphs & Slicers Jackgeorge Excel 0 03-29-2016 08:24 AM
Event planning cajos Project 3 03-26-2016 05:19 PM
Slicers/ pane_separators in a file - how to lock? Officer_Bierschnitt Excel 0 02-05-2016 02:49 AM
Using only one of 4 slicers to triger Workbook_SheetTableUpdate event Document_ContentControlBeforeDelete Event Tejas.T Word VBA 5 02-27-2015 08:01 PM
Disappearing Slicers in power pivot excel 2013 akaszovitz Excel 0 11-18-2014 11:22 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft