I use the following script in Excel 2000 and it works perfectly, for some reason in Excel 2010 version it bugs out at the case "DB", "" line, it says type mismatch.
Can anyone help to fix this as it is an important piece of code and there are another four pieces of code similar, so if it won't...