Ready to get started with anonymous questions today? It's easy! Learn more.
Sub tell() Dim nFileNum As Integer, sText As String, sNextLine As String With CommonDialog1 .DialogTitle = "Select a file" .ShowOpen End With If CommonDialog1.FileName <> "" Then nFileNum = FreeFile Open CommonDialog1.FileName For Input As nFileNum Do While Not EOF(nFileNum) Line Input #nFileNum, sNextLine List1.AddItem sNextLine Loop Close nFileNum End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.