get_Units crashes

Top  Previous  Next

If you have a parameter then you may not be able to use get_Units (C# version of the VBA Units function). Your C# call to get_Units will crash if you have not set Embed Interop _Types to true:

 

Embed_Interop_Types

 

 

The crash will look like this:

 

get_Units

 

This can Enter topic text here.

Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)