S
scain2004
This is the code I use now:
Private Sub Workbook_Open()
Dim fileName As String
Application.ScreenUpdating = False
jbl = ThisWorkbook.name
On Error Resume Next
Set wb = Workbooks(cwb)
On Error GoTo 0
If wb Is Nothing Then
fileName = Application.GetOpenFilename("Excel Files (*.xls).*.xls)",
_
"Please choose a Production Schedule workbook to open")
cwb = ParsePath(fileName, "FILE_ONLY")
wbPath = ParsePath(fileName, "PATH_ONLY")
Sheets("Admin").Range("CalPath") = wbPath
Sheets("Admin").Range("CalName") = cwb
Set wb = Workbooks.Open(wbPath & cwb)
End If
Application.Workbooks(jbl).Activate
ThisWorkbook.Sheets("Phoenix").Activate
Application.ScreenUpdating = True
End Sub
I need to change this so when the first workbook opens, i
automatically uses the path in wbPath the next time the first workboo
opens when the Open dialog pops up.
Thanks,
Stev
Private Sub Workbook_Open()
Dim fileName As String
Application.ScreenUpdating = False
jbl = ThisWorkbook.name
On Error Resume Next
Set wb = Workbooks(cwb)
On Error GoTo 0
If wb Is Nothing Then
fileName = Application.GetOpenFilename("Excel Files (*.xls).*.xls)",
_
"Please choose a Production Schedule workbook to open")
cwb = ParsePath(fileName, "FILE_ONLY")
wbPath = ParsePath(fileName, "PATH_ONLY")
Sheets("Admin").Range("CalPath") = wbPath
Sheets("Admin").Range("CalName") = cwb
Set wb = Workbooks.Open(wbPath & cwb)
End If
Application.Workbooks(jbl).Activate
ThisWorkbook.Sheets("Phoenix").Activate
Application.ScreenUpdating = True
End Sub
I need to change this so when the first workbook opens, i
automatically uses the path in wbPath the next time the first workboo
opens when the Open dialog pops up.
Thanks,
Stev