LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Workbook Events

Hi,
I have put the following simple code into ThisWorkbook to
determine first and last dates entered on any worksheet:

Private Sub Workbook_WindowActivate(ByVal Wn As Window)
If Sheets(1).Range("A24") = "" Then
Sheets(1).Range("A2") = ""
Else
MinMaxDate (1)
MinMaxDate (2)
End If
End Sub
MinMaxDate (x) is a function using WorksheetFunction.Min
and Max and the argument represents the worksheet number.

This works fine however, if I have a second workbook open
and wish to manually copy cells from it into the prime
workbook then whilst the copy is executed, the paste
function is disabled when the prime workbook is activated.

I am not sure if this is something to do with Enabling
Events etc. Could someone please explain what is missing?

T.I.A.

Geoff
 
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
Understand Workbook/Worksheet Events Zamdrist Excel Discussion (Misc queries) 4 August 10th 06 04:56 PM
Macro events nc Excel Discussion (Misc queries) 1 January 12th 06 09:32 AM
events? [email protected] Excel Discussion (Misc queries) 1 September 14th 05 03:26 PM
VBProject events? Chip Pearson Excel Programming 0 September 10th 03 10:36 AM
Events for workbook close Aaron Queenan Excel Programming 6 July 15th 03 09:09 PM


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