Tim,

What are you going to do with the variables? Does it matter if they are renamed as Howard suggests, replacing the illegall characters with (say) an underscore "_"?

If you need to preserve the variable names, you can use an intermediate format to store them, like an INI file.

You can also use a simple "hashed array" which comprises two parallel arrays, the first with the variable name and the second with the value.

The hashed array or INI file solution has a couple of useful side effects, such as the ability to iterate the variable collection using "For Each" type constructs.