object oRegResult = Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Excel\Options", sName, DefaultValue);
16.0 should be replaced with Format(Val(Application.Version),"0.0")
Although it looks like Microsoft have stuck with version 16 for a while as Excel 2019 also returns this version.
object oRegResult = Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Excel\Options", sName, DefaultValue);
16.0 should be replaced with Format(Val(Application.Version),"0.0")
Although it looks like Microsoft have stuck with version 16 for a while as Excel 2019 also returns this version.