Hi,
I'm trying to use this expression in a macro to obtain the whole circle bearing between 2 points of known latitude and longitude, the LatA Lonb etc (all in radians)
[FONT="]360-(MOD(ATAN2((COS(LatA)*SIN(LatB))-(SIN(LatA)*COS(LatB)*COS(LonB-LonA)), SIN(LonB-LonA)*COS(LatB)),2*PI())*180/PI())
I think ATAN2 has to be called up as a worksheetfunction, but how do I use MOD in a macro?
Thanks
Geoff [/FONT]
I'm trying to use this expression in a macro to obtain the whole circle bearing between 2 points of known latitude and longitude, the LatA Lonb etc (all in radians)
[FONT="]360-(MOD(ATAN2((COS(LatA)*SIN(LatB))-(SIN(LatA)*COS(LatB)*COS(LonB-LonA)), SIN(LonB-LonA)*COS(LatB)),2*PI())*180/PI())
I think ATAN2 has to be called up as a worksheetfunction, but how do I use MOD in a macro?
Thanks
Geoff [/FONT]