I have the following line of code:
columna_inicio = Range("4:4").Find(fecha).Column
The problem is that if date does not exist, the program releases an error.
How can I handle this?
I tried using the Try Catch but I can not get it to work. Also the On Error Go To ... but I can not make it work.
Any help?
The function to be implemented would be something like:
Public Function detectarfecha(fecha)
Intenta
columna_inicio = Range("4:4").Find(fecha).Column
Si no puede. Intenta
'Otra cosa...
End Function