Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default What first - sheet_change, calculate,selection, etc.

Thanks JE that was a good link and I'll download Chip's example event code.
Another quick question is I have worksheet_calculate code in Sheet2. When I
change a cell in Sheet3 why does Sheet2 "calculate' code execute. I thought
each sheet was it's own code. sheet 3 would not affect Sheet2.
The Sheet2 SUB is coded Private.
TIA

"JE McGimpsey" wrote:

See the "Order of Event Procedures" section of

http://cpearson.com/excel/events.htm

In article ,
"Tom Rudski" <Tom wrote:

Whose on First!!!
In Sheets VBA windows you can select all of the different code options (i.e.
change, calculate, selection, etc.)
What code section (SUB)is executed first?
Why does it go in circles. At the end one SUB the execution jumps into the
middle of another SUB?
Any ideas haven't seen anything written on this before.

TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default What first - sheet_change, calculate,selection, etc.

It shouldn't unless Sheet2 and Sheet3 are linked so that a change in
Sheet3 causes a calculation event in sheet2 (e.g., a cell in Sheet2 has
=Sheet3!A1 as its formula).


In article ,
"Tom Rudski" wrote:

Another quick question is I have worksheet_calculate code in Sheet2. When I
change a cell in Sheet3 why does Sheet2 "calculate' code execute. I thought
each sheet was it's own code. sheet 3 would not affect Sheet2.
The Sheet2 SUB is coded Private.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default What first - sheet_change, calculate,selection, etc.

"Tom Rudski" wrote in message ...
Thanks JE that was a good link and I'll download Chip's example event code.
Another quick question is I have worksheet_calculate code in Sheet2. When I
change a cell in Sheet3 why does Sheet2 "calculate' code execute. I thought
each sheet was it's own code. sheet 3 would not affect Sheet2.
The Sheet2 SUB is coded Private.
TIA

"JE McGimpsey" wrote:

See the "Order of Event Procedures" section of

http://cpearson.com/excel/events.htm

In article ,
"Tom Rudski" <Tom wrote:

Whose on First!!!
In Sheets VBA windows you can select all of the different code options (i.e.
change, calculate, selection, etc.)
What code section (SUB)is executed first?
Why does it go in circles. At the end one SUB the execution jumps into the
middle of another SUB?
Any ideas haven't seen anything written on this before.

TIA



Is your application set to calculate automatically?
If so sat to manual and only that sheet will calculate when the event is fired.

-Pete
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
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Combo box selection will not calculate Perrysbox2 Excel Worksheet Functions 1 June 11th 09 09:21 PM
Combo box selection will not calculate Perrysbox2 Excel Discussion (Misc queries) 0 June 11th 09 07:12 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Calculate average based on user selection William Excel Discussion (Misc queries) 2 January 16th 07 06:16 PM


All times are GMT +1. The time now is 11:52 AM.

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"