Aussie, you must have used Word to convert code from PDF to text. That caused use of 'smart' apostrophes and quotes. VBA doesn't like them. Had to replace all.