I have been writing some macros to perform some astrological calculations (calculating sign, lunar mansion, D9 & D60). The raw data is in the following format:
Here are some tips that will make a huge difference to your code execution time:
Option Explicit
and declare your variables as the most appropriate date type - only use Variant
when you need to.To display a number as Deg Minutes Seconds use number format [h]°mm'ss\"
This leverages the time format, so you need to create the number value as Deg/24 + Min/1440 + Sec/86400
Eg 293°44'23"
has the value 12.2391550925926