Hi.
The below VBA is part of a code to create a text box and populate with content from two cells however I’m looking to alter to include:
The cell V9, contains a number 0.5, and the cell is formatted as a percent, 50%. I need the above code to present as a percent in the text box rather than the decimal number
Also, how do I specify the data from each cell to be on a new line within the textbox?
Thanks!
The below VBA is part of a code to create a text box and populate with content from two cells however I’m looking to alter to include:
The cell V9, contains a number 0.5, and the cell is formatted as a percent, 50%. I need the above code to present as a percent in the text box rather than the decimal number
Also, how do I specify the data from each cell to be on a new line within the textbox?
Thanks!
Code:
Set L1wL = ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 380, L1y4 - 5, 200, 20)
L1wL.TextFrame.Characters.Text = Range("U9").Value & Range("V9").Value
L1wL.Name = "L1Line3"