Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Hello,
It is possible to trigger a VBA macro that would run automatically every time the workbook "A" is open, if the date in Workbook "A" in row D15 is equal to the date in Workbook "B" E5? |
#2
![]() |
|||
|
|||
![]()
Sub Auto_Open()
Dim wb As Workbook On Error Resume Next Set wb = Workbooks("Workbook B.xls") On Error GoTo 0 If wb Is Nothing Then MsgBox "Workbook B not open" Else If ThisWorkbook.ActiveSheet.Range("D15").Value = _ wb.ActiveSheet.Range("E5").Value Then 'run macro End If End If End Sub -- HTH RP (remove nothere from the email address if mailing direct) "Jeff" wrote in message ... Hello, It is possible to trigger a VBA macro that would run automatically every time the workbook "A" is open, if the date in Workbook "A" in row D15 is equal to the date in Workbook "B" E5? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date macro | Excel Discussion (Misc queries) | |||
Can't get simple macro to run | Excel Worksheet Functions | |||
Macro and If Statement | Excel Discussion (Misc queries) | |||
Macro for multiple charts | Excel Worksheet Functions | |||
running totals in a macro for each month | Excel Worksheet Functions |