Vb Script For Calling Data From Excel Database 追蹤
I have a weight scale attached to this computer. The goal is to use the scale to create the weight (Net_Weight) on the label.
I have the scale connected as a shared data source. The scale works without issue and I can get the software to recognize the weight; that works without issue.... my issue appears to be with the script. I have a multi-line expression for the NET WEIGHT.
'Automatically called whenever the value of the data source is needed.
'Set the Value property to set the value of this data source.
Value = "2.00"
If Sheet1.Range("A" & CStr(k)).Value = Value Then
msgbox Sheet1.Range("D" & CStr(k)).Value
Anyone have an idea what the error is in this expression?