I have a userform that copies the value of a cell to a textbox on the userform. I want to round the value two one decimal place in the textbox. This is the code I have but I keep getting a run-time error 13:
TextBox7.Text = Round(Sheets("sheet3").Range("w51").Value, 0)
I can see why I get the error but I don't know how else to get the value from the cell into a textbox and round the value to one decimal place.
TextBox7.Text = Round(Sheets("sheet3").Range("w51").Value, 0)
I can see why I get the error but I don't know how else to get the value from the cell into a textbox and round the value to one decimal place.