M
Mike Fogleman
From code in one workbook I want to open another workbook and run a
procedure that is in it. I have this in the first workbook:
Sub RunTracking()
Dim cdir As String
Dim wb As Workbook
For Each wb In Workbooks
If wb.name = "NCP Tracking.xls" Then
MsgBox ("NCP Tracking.xls is already open.")
Exit Sub
End If
Next wb
cdir = ActiveWorkbook.Path
Workbooks.Open cdir & "\NCP Tracking.xls"
Application.Run ("RunUpdate")
End Sub
I also tried Application.Run ("NCP Tracking.xls!RunUpdate"), but still says
"Can not find"
What I gotta do?
Mike F
procedure that is in it. I have this in the first workbook:
Sub RunTracking()
Dim cdir As String
Dim wb As Workbook
For Each wb In Workbooks
If wb.name = "NCP Tracking.xls" Then
MsgBox ("NCP Tracking.xls is already open.")
Exit Sub
End If
Next wb
cdir = ActiveWorkbook.Path
Workbooks.Open cdir & "\NCP Tracking.xls"
Application.Run ("RunUpdate")
End Sub
I also tried Application.Run ("NCP Tracking.xls!RunUpdate"), but still says
"Can not find"
What I gotta do?
Mike F