Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Msg Box to appear when page selection changes in a Pivot Table

Use the WorksheetSelction Change event and check the target range....

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Mustang" wrote:

Does anyone know how I can create a macro that will run each time the Page
selection changes in my Pivot Table to display a message box?

I basically want to remind them to copy a total amount to another sheet.

Many thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Msg Box to appear when page selection changes in a Pivot Table

Hi thanks for your speedy reply.

My knowledge of VB is minimal. Can you give me a bit more guidance as to
what to put in the code please. I am a bit lost here sorry.

"Jacob Skaria" wrote:

Use the WorksheetSelction Change event and check the target range....

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Mustang" wrote:

Does anyone know how I can create a macro that will run each time the Page
selection changes in my Pivot Table to display a message box?

I basically want to remind them to copy a total amount to another sheet.

Many thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Msg Box to appear when page selection changes in a Pivot Table

Assuming my Range as A1:C3 of Sheet1; copy the below code to the Selection
Change event. Launch VBE using Alt+F11 from workbook. From the left treeview
double click Sheet1(Sheet1) Drop down to get the 'Worksheet' 'Selection
Change' event paste the code...so as to look like.

Select any cell from A1:C3 in Sheet1...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Target, Range("$A$1:C$3")) Is Nothing Then
MsgBox "OK"
End If
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Mustang" wrote:

Hi thanks for your speedy reply.

My knowledge of VB is minimal. Can you give me a bit more guidance as to
what to put in the code please. I am a bit lost here sorry.

"Jacob Skaria" wrote:

Use the WorksheetSelction Change event and check the target range....

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Mustang" wrote:

Does anyone know how I can create a macro that will run each time the Page
selection changes in my Pivot Table to display a message box?

I basically want to remind them to copy a total amount to another sheet.

Many thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Synchronize the Pivot table page field selection in 2 tables? Amk Excel Worksheet Functions 0 April 24th 09 06:42 PM
Pivot Table, Line Chart with Secondary Y axis, Page Field selection destroys Y2 axis [email protected] Charts and Charting in Excel 0 July 13th 05 09:30 PM
Multiple selection in the page area of a pivot table svlach Excel Discussion (Misc queries) 0 March 10th 05 03:33 PM
VBA Code for a pivot table to open database and to reference table current page Pete Straman Straman via OfficeKB.com Excel Programming 0 February 21st 05 03:57 AM
Pivot Table - Multiple Pivot Field Selection Paul Mac.[_2_] Excel Programming 3 November 10th 03 01:13 PM


All times are GMT +1. The time now is 08:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"