Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Start a sheet event when i leave a sheet

Is it posible to make changes on a sheet and then when i leave the sheet
start some macros for the sheet i just left?

Gretings Hans


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Start a sheet event when i leave a sheet

right click on the sheet tabview codeselect worksheetselect deactivate

--
Don Guillett
SalesAid Software

"hans" wrote in message
...
Is it posible to make changes on a sheet and then when i leave the sheet
start some macros for the sheet i just left?

Gretings Hans




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Start a sheet event when i leave a sheet

Hans,

Put your code in the worksheet code:

Private Sub Worksheet_Deactivate()
*** your code ***
End Sub

To get to the code sheet - right click on the sheet tab and select "View
Code". This will take you to the code window. Above the 'blank' page are 2
edit boxes. From the one on the left - select "Worksheet", and from the one
on the right - select "Deactivate". Any code you put in here will run when
you select another worksheet tab.

hth
--

steveB

(Remove 'NOSPAM' from email address if contacting me direct)


"hans" wrote in message
...
Is it posible to make changes on a sheet and then when i leave the sheet
start some macros for the sheet i just left?

Gretings Hans




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
Copy Sheet #'s, but leave cell reference KennyD Excel Discussion (Misc queries) 3 November 9th 09 10:55 PM
How to leave the lines on my exel work sheet BKMorris Excel Worksheet Functions 3 April 4th 07 05:09 PM
Transpose from one sheet to the next and leave out blank cells notso Excel Discussion (Misc queries) 2 January 31st 07 01:42 AM
'Copy to' Advance Filter depend only on sheet ID not start sheet Sandy Yates Excel Worksheet Functions 0 April 4th 06 03:48 AM
Assign values to a cell in sheet A, from worksheet_change event of sheet B Arif Khan Excel Programming 1 May 4th 04 04:51 AM


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