Hello Everyone,
It's seems so dumb to ask but I can't figure out why I am getting this error message:
What I'm trying to do is open another workbook using the path that I provided.
ERROR MESSAGE: Run-time error '13': Type mismatch
Also, if someone can explain to me why this is happening so that I can avoid these errors from happening again.
Thanks in advance and I appreciate your time reading this thread.
It's seems so dumb to ask but I can't figure out why I am getting this error message:
What I'm trying to do is open another workbook using the path that I provided.
ERROR MESSAGE: Run-time error '13': Type mismatch
Code:
Dim wsDatabase As Worksheet
Dim path As String
path = "[location of the file]"
Set wsDatabase = Application.Workbooks.Open(path)
Also, if someone can explain to me why this is happening so that I can avoid these errors from happening again.
Thanks in advance and I appreciate your time reading this thread.