Ok, I will make it even simpler. This is the code I'm using to test the multiline feature
And, this is the resultCode:Option Explicit Private Sub Command1_Click() Dim MyNumber As Long Dim I As Long MyNumber = 0 For I = 0 To 50 Text1.SelStart = Len(Text1) 'Finds the starting point to append text Text1.SelText = MyNumber & vbCrLf 'Appends text MyNumber = MyNumber + 100 Next I End Sub
Just try these two lines and they should work
Make sure you have the next settings correctCode:Text1.SelStart = Len(Text1) 'Finds the starting point to append text Text1.SelText = MyNumber & vbCrLf 'Appends text
![]()




Bookmarks