I have a procedure that works fine when it is called from another procedure (no variables passed between then 2), and works fine when I step through it manually. However, it just "gives" up when I run it directly.
It fails at the same line of code, but does not report an error, and as I say, stepping through it manually causes now problem.
OldTemp = Application.GetOpenFilename(FileFilter:= _
"Excel Files (*.xls), *.xls", Title:="Please select a file")
If OldTemp = False Then Exit Sub
Application.EnableEvents = False
Set OldTT = Workbooks.Open(OldTemp)
Application.EnableEvents = True
It fails on the penultimate line (Set OldTT = Workbooks.Open(OldTemp))
James.
It fails at the same line of code, but does not report an error, and as I say, stepping through it manually causes now problem.
OldTemp = Application.GetOpenFilename(FileFilter:= _
"Excel Files (*.xls), *.xls", Title:="Please select a file")
If OldTemp = False Then Exit Sub
Application.EnableEvents = False
Set OldTT = Workbooks.Open(OldTemp)
Application.EnableEvents = True
It fails on the penultimate line (Set OldTT = Workbooks.Open(OldTemp))
James.