Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default worksheet_change help please


Hi, I have a pivot table on a spreadsheet, with the selection section i
cells B6:B11 (eg: the parameters you can change to alter the data pulle
back by the pivot table).
Whenever B9, B10 or B11 are changed I want a worksheet_change to fire.
I know how to do it when it is changing to a specific target, but thi
time I just want it to change if the content of the cell is changed.
Is that possible, if so, any help gratefully received.
Amy x

--
AmyTaylo
-----------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...fo&userid=2097
View this thread: http://www.excelforum.com/showthread.php?threadid=53061

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default worksheet_change help please

Amy

The Worksheet_Change event will fire when *any* cell on the sheet is
changed. You can put an if statement in the event code to prevent the code
from running except when it's one of those cells.

If Not Intersect(Target, Me.Range("B9, B10, B11")) Is Nothing Then
'Your code here
End If

--
Dick Kusleika
MS MVP - Excel
www.dailydoseofexcel.com

AmyTaylor wrote:
Hi, I have a pivot table on a spreadsheet, with the selection section
in cells B6:B11 (eg: the parameters you can change to alter the data
pulled back by the pivot table).
Whenever B9, B10 or B11 are changed I want a worksheet_change to fire.
I know how to do it when it is changing to a specific target, but this
time I just want it to change if the content of the cell is changed.
Is that possible, if so, any help gratefully received.
Amy xx



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default worksheet_change help please


Hi Dick, thank you sooo much !
Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=530615

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
Sub Worksheet_Change Matt Excel Discussion (Misc queries) 3 November 16th 07 04:40 PM
More Then one Worksheet_Change pauluk[_7_] Excel Programming 2 March 2nd 04 01:38 PM
Worksheet_Change Greg Bloom Excel Programming 1 November 5th 03 08:44 PM
worksheet_change vs. calculate, and worksheet_change not running Tom Ogilvy Excel Programming 1 July 14th 03 02:51 AM
worksheet_change vs. calculate, and worksheet_change not running Ross[_5_] Excel Programming 0 July 13th 03 04:27 PM


All times are GMT +1. The time now is 01:19 PM.

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

About Us

"It's about Microsoft Excel"