Can you post a sample of the text file? The UCase$ function may be left out if you can be absolutely sure that the MAC addresses will always be uppercase.