It looks like you are mix and matching code from both macros I posted. If you want to do that then you MUST look at the differences and work out what the differences mean.
The changes I made to the second macro don't rely on the presence of the \w.
When you say the code wouldn't even run, can you cast any light on what line was failing.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|