Hi Folks,
I wrote a simple routine for selecting files using Application.GetOpenFilename. There is an error handler as follows:
ErrorTrap: Select Case Err.Number Case 13 Exit Sub Case Else ' Some unexpected error, report it to user. MsgBox "ET Phone Home!" End Select ' Case Err.Number
In my original template, it works fine. A colleagure copied it exactly into a project of his own, generated a template and sent it out. In his template, when the routine in question is invoked, we get a compilation error, “Invalid qualifier”, with the Err highlighted.
Furthermore, if I start typing “Err.” in my code, the “auto-complete” list of properties and methods pops up, but if I do the same in his code, no context list pops up. What is happening here? Thanks!
I will cross-post in the VB/VBA forum.