Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If Range("L" & ActiveCell.Row).Value = "Performance" Then
- Dim FilePath As String
- Dim strLine As String
- FilePath = "\UKSH000-FILE06PurchasingNew_Supplier_Set_Ups_&_AuditsATTACHMENTS" & Range("C" & ActiveCell.Row).Value & "performance.txt"
- Open FilePath For Input As #1
- While EOF(1) = False
- 'read the next line of data in the text file
- Line Input #1, strLine
- 'print the data in the current row
- MsgBox strLine
- 'increment the row counter
- i = i + 1
- Wend
- Close #1
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement