vba read all text in a text file?
问题 I am trying to use vba to read all text in a text file and display it in an excel message box. the problem I have is whilst this is in effect working, it displays each line of text in a separate message box when instead I want it all in one? can someone please show me where I am going wrong. thanks If Range("L" & ActiveCell.Row).Value = "Performance" Then Dim FilePath As String Dim strLine As String FilePath = "\\UKSH000-FILE06\Purchasing\New_Supplier_Set_Ups_&_Audits\ATTACHMENTS\" & Range("C