Hi tubar
Yes, just use the Left() function. If you know how many characters you want it would just be something like =Left(TextBox1,15). If the number of characters is dependent on the location of a certain character (eg the second \) you would need to first use the Instr() function to identify the position. All thats then left is choosing an event to run your code.