If this is your first visit to our forums, welcome!
Bengt, I added code markers to make your code more readable.
Best regards, -SWM-
Forum Rules