I want a macro to run every time someone opens an Excel file sent to them for posting in the General Ledger system. I have a macro Checkaccts that does the test, but sometimes processors forget to run it and things get missed. So I’m looking for an event macro and came up with this.
Sub App_WorkbookOpen(ByVal Wb As Workbook)
Active.Workbook.Range(“b12”).Select
If ActiveCell.Value = “Journal Description” Then
Checkaccts
End If
End Sub
I want to give this out to the processors for their own Personal.xls workbooks (that have Checkaccts in it) but it doen’t work. Someone said it’s because Excel is thinking Personal.xls is the workbook at issue, but when I open a new workbook, shouldn’t that become the active workbook? Any suggestions? Thanks.