Hello!
I have a excel worksheet that uses Vlookups in the cells of the worksheet to plug data into a userform. The Vlookups get the data from a separate worksheet that has a ton of decimals (ie. 2500.7256416436) but I would like to change specific ones to have 2 decimals and others to have no decimals. Is there a way I can do this?
I have tried to format the excel doc outside of VBA but it just re formats to all the extra numbers when I run the code.
I've tried Me.TextBox2.Value = Format(Me.TextBox1.Value, "0.00") and a few other things in the code but nothing I try seems to be working.
Thanks for any guidance!
I have a excel worksheet that uses Vlookups in the cells of the worksheet to plug data into a userform. The Vlookups get the data from a separate worksheet that has a ton of decimals (ie. 2500.7256416436) but I would like to change specific ones to have 2 decimals and others to have no decimals. Is there a way I can do this?
I have tried to format the excel doc outside of VBA but it just re formats to all the extra numbers when I run the code.
I've tried Me.TextBox2.Value = Format(Me.TextBox1.Value, "0.00") and a few other things in the code but nothing I try seems to be working.
Thanks for any guidance!