If you have an 8 bit number, it can count up to 255. I'm guessing whoever programmed excel used an 8 bit variable to store the number of columns. As for the character limit, the programmers probably created the buffer which stores the file name as a size of MAX_PATH. On some windows implementations, this is equal to 256 (255 characters, plus one null terminator).