Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. If Range("L" & ActiveCell.Row).Value = "Performance" Then
  2. Dim FilePath As String
  3. Dim strLine As String
  4. FilePath = "\UKSH000-FILE06PurchasingNew_Supplier_Set_Ups_&_AuditsATTACHMENTS" & Range("C" & ActiveCell.Row).Value & "performance.txt"
  5. Open FilePath For Input As #1
  6. While EOF(1) = False
  7. 'read the next line of data in the text file
  8. Line Input #1, strLine
  9. 'print the data in the current row
  10. MsgBox strLine
  11. 'increment the row counter
  12. i = i + 1
  13. Wend
  14. Close #1
  15.  
  16. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement