After we get the code to work, and your sheet is filled with numbers using dots as decimal separaters, select the column(s) and press Ctrl+H. in that dialog's "Find What" box, type a dot. In the "Replace With" Box, type a comma. The find and Replace Dialog will change them all in a short time.