G
Guest
I see I'm not the only one with type mismatch problems
I'm sure it's really simple but I have a piece of code where the only undefined element is the name of a function the sub calls at the end. As far as I know this doesn't need to be dimensioned so what am I doing wrong? Here is my code:
Sub bearing(
Dim ABdeg, ABmin, ABsec, XYdeg, XYmin, XYsec As Doubl
'Name WCB cell
ABdeg = Cells(11, "B"
ABmin = Cells(11, "C"
ABsec = Cells(11, "D"
XYdeg = Cells(12, "B"
XYmin = Cells(12, "C"
XYsec = Cells(12, "D"
If ABdeg = " " Or ABmin = " " Or ABsec = " " Or XYdeg = " " Or XYmin = " " Or XYsec = " " The
Call misclosur
End I
End Sub
I'm sure it's really simple but I have a piece of code where the only undefined element is the name of a function the sub calls at the end. As far as I know this doesn't need to be dimensioned so what am I doing wrong? Here is my code:
Sub bearing(
Dim ABdeg, ABmin, ABsec, XYdeg, XYmin, XYsec As Doubl
'Name WCB cell
ABdeg = Cells(11, "B"
ABmin = Cells(11, "C"
ABsec = Cells(11, "D"
XYdeg = Cells(12, "B"
XYmin = Cells(12, "C"
XYsec = Cells(12, "D"
If ABdeg = " " Or ABmin = " " Or ABsec = " " Or XYdeg = " " Or XYmin = " " Or XYsec = " " The
Call misclosur
End I
End Sub