#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Events

is there an event that will run if a workbook is restored after it has been
minimised
--
Roger
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 527
Default Events

Roger

In the workbook module (right-click the Excel Icon on the left of the Menu
Bar and selet View code) and use these events

Private Sub Workbook_Activate()
Your code here
End Sub

Private Sub Workbook_Deactivate()
Your code here
End Sub

Regards
Peter

"Roger" wrote:

is there an event that will run if a workbook is restored after it has been
minimised
--
Roger

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Events

thanks Billy but i have already tried these - they work when switching from 1
workbook to another but dont work if you minimise then restore - rog
--
Roger


"Billy Liddel" wrote:

Roger

In the workbook module (right-click the Excel Icon on the left of the Menu
Bar and selet View code) and use these events

Private Sub Workbook_Activate()
Your code here
End Sub

Private Sub Workbook_Deactivate()
Your code here
End Sub

Regards
Peter

"Roger" wrote:

is there an event that will run if a workbook is restored after it has been
minimised
--
Roger

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Events

The Workbook_WindowResize event (in ThisWorkbook) may be what you want.

--
Jim
"Roger" wrote in message
...
thanks Billy but i have already tried these - they work when switching
from 1
workbook to another but dont work if you minimise then restore - rog
--
Roger


"Billy Liddel" wrote:

Roger

In the workbook module (right-click the Excel Icon on the left of the
Menu
Bar and selet View code) and use these events

Private Sub Workbook_Activate()
Your code here
End Sub

Private Sub Workbook_Deactivate()
Your code here
End Sub

Regards
Peter

"Roger" wrote:

is there an event that will run if a workbook is restored after it has
been
minimised
--
Roger



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
do events? background events cereldine[_15_] Excel Programming 1 April 12th 06 01:06 PM
events? [email protected] Excel Discussion (Misc queries) 1 September 14th 05 03:26 PM
add-ins & events Eric[_27_] Excel Programming 8 May 22nd 05 10:24 PM
On Events Roger Excel Programming 1 April 15th 05 08:21 AM
how do I log events bmarks Excel Programming 0 December 13th 04 07:33 PM


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