Trimming affects both the graphics in the user interface and the hydrostatics calculations. It is good practice to ensure that trimming is turned on before performing any hydrostatic calculations. Trimming is accessed through the application object.
msApp.Trimming = True 'Sets trim invisible
msApp.Trimming = False 'Sets trim Visible