I wish we could get away with DIM A, B, C, D, ETC, AS STRING but then we would need a new syntax: AS STRINGS
Change it to...
DIM A AS STRING, B AS STRING
Sorry, I copied and pasted your code first, ran it, then hit reply. I should have looked for other replies first, to see the problem was solved. Oh well, blame it on too much Thanksgiving Day lasagna!
Pete