This example requires that the label has wordwrap true and is high enough for 3 lines of text
font needs to be Times New Roman also.
It takes the values from two text boxes when you click command1 and copies into label as fraction.
Hope this is something like what you need.
Private Sub Command1_Click()
Dim strNumerator As String
Dim strDenominator As String
Dim strSeparator As String
Dim intCounter As Integer
Dim strLine As String
If Len(strNumerator) > Len(strDenominator) Then
For intCounter = 1 To Len(strNumerator)
strLine = strLine + strSeparator
Next intCounter
Else
For intCounter = 1 To Len(strDenominator)
strLine = strLine + strSeparator
Next intCounter
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.