Forum Discussion
praneshm
New Contributor
Use the .TEXTCONTENT property to fetch the value of the Object, say a textbox or a label or any object of your interest(if applicable)
praneshm
9 years agoNew Contributor
Use the below code to read from the entire text file;
Sub TextfileRead
Dim tobj, FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
Set tobj = FSO.OpenTextFile("C:\SampleText.txt",1)
Do Until tobj.AtEndOfStream
content = tobj.Readline
Msgbox content
Loop
Set tobj = Nothing
Set FSO = Nothing
End Sub
Related Content
- 11 months agoRocket
Recent Discussions
- 4 hours agoSlickRick
- 5 hours agoSlickRick
Name Mapping Issue
Solved7 hours agokgreger1