Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Macro that runs when worksheet is automatically updated

I have a workbook that has a worksheet (Sheet1) for user entry. This updates
another worksheet (Sheet2) automatically with information specific for that
part number as defined in Sheet1.

I have a macro that puts a picture in Sheet2 and it works beautifully except
I need it to run when the information from Sheet1 changes Sheet2
automatically. How can I make that macro run whenever I switch to Sheet2.

(Sheet1 has data entered....Sheet2 automatically has field changes...needs
macro to run whenever switching to Sheet2 to view the data).

Thanx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Macro that runs when worksheet is automatically updated

Lets assume that you macro (called lambi) is in a public module.

In the worksheet code area for Sheet2 insert:

Private Sub Worksheet_Activate()
Call lambi
End Sub
--
Gary''s Student - gsnu200755


"Lambi000" wrote:

I have a workbook that has a worksheet (Sheet1) for user entry. This updates
another worksheet (Sheet2) automatically with information specific for that
part number as defined in Sheet1.

I have a macro that puts a picture in Sheet2 and it works beautifully except
I need it to run when the information from Sheet1 changes Sheet2
automatically. How can I make that macro run whenever I switch to Sheet2.

(Sheet1 has data entered....Sheet2 automatically has field changes...needs
macro to run whenever switching to Sheet2 to view the data).

Thanx

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Macro that runs when worksheet is automatically updated

Worked like a charm. Thanks for the code.

"Gary''s Student" wrote:

Lets assume that you macro (called lambi) is in a public module.

In the worksheet code area for Sheet2 insert:

Private Sub Worksheet_Activate()
Call lambi
End Sub
--
Gary''s Student - gsnu200755


"Lambi000" wrote:

I have a workbook that has a worksheet (Sheet1) for user entry. This updates
another worksheet (Sheet2) automatically with information specific for that
part number as defined in Sheet1.

I have a macro that puts a picture in Sheet2 and it works beautifully except
I need it to run when the information from Sheet1 changes Sheet2
automatically. How can I make that macro run whenever I switch to Sheet2.

(Sheet1 has data entered....Sheet2 automatically has field changes...needs
macro to run whenever switching to Sheet2 to view the data).

Thanx

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
WHY the same macro runs so slowly on a different but faster comput Jerry Excel Discussion (Misc queries) 2 August 15th 07 10:30 PM
One macro runs then it auto runs another macro PG Excel Discussion (Misc queries) 2 September 1st 06 09:30 PM
User to decide how often a macro runs Deedee Excel Discussion (Misc queries) 2 November 2nd 05 08:42 PM
Macro that runs in the background tomwashere2 Excel Discussion (Misc queries) 0 October 22nd 05 10:40 PM
Which Macro Runs...? Bill Martin Excel Discussion (Misc queries) 7 September 29th 05 12:42 PM


All times are GMT +1. The time now is 05:38 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"