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: 3
Default WorkBook open event

I am having trouble getting my head around the code i need to accomplish
this:
I want it to run when the below event runs.

The logic is:

If there is a DATE(dd/mm/yy) in Sheet2.Column(A) that is = 4 years from
NOW(), AND the value in the SAME ROW in Sheet2.Column C is NOT found in
Sheet3.Column(A) then
the Values in that ROW, Sheet2.Column(C).Value is then placed into
Sheet3.Column(A), AND Sheet2.Column(D).Value is placed into Sheet3.Column(C)

Eg.
Sheet2:

A B C D

12/3/03 Fred 101 Task1 ' Being = 4yrs
old this data is transfered(copied) onto sheet3.

10/3/05 Jack 125 Task 7


Sheet3:

A B C D

95 ----- Task 4
101 ----- Task 1 ' <====== Due to this in sheet2 being
= 4yrs old these values are placed into sheet3.



Private Sub Workbook_Open()
' Existing Code below
Application.ScreenUpdating = False
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayGridlines = False
Sheets("NavigationPage").Activate
' Place the current Date on Sheet1 when Opening WorkBook
Sheet6.Range("b1").Value = Format(Now, "DDDD DD MMMM YYYY")
' Place code here to update the data when the WorkBook opens

Application.ScreenUpdating = True
End Sub


Any idea's how i can get this done?


Corey....


 
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
Workbook open event Pawan Excel Worksheet Functions 7 August 26th 08 07:32 AM
Workbook open event [email protected] Excel Programming 1 June 11th 06 10:57 AM
Workbook Open event Libby Excel Programming 1 November 29th 04 04:10 PM
Workbook open event G Lam Excel Programming 3 November 12th 04 04:38 PM
Workbook Open event Todd Huttenstine Excel Programming 1 April 21st 04 07:06 PM


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