Need VB Code for Dimension Override Value

I am in need of some code that gets a specific dimension andsets the override value of that dimension to any number I choose.

Here is all I could find:

Dim instance As IDisplayDimension
Dim Override As Boolean
Dim Value As Double
Dim value As Boolean

value = instance.SetOverride(Override, Value)


This is probably easier than I am making it out to be lol. I don'tknow what to put to get D1@Sketch3 to be an override value of 50.Thank you for any help!SolidworksApi macros