Asterix
02-27-2008, 10:26 AM
I've broken a golden rule (well used to be golden when I used to code) and embedded some default text (i.e. data) as a variable assignment in my code.
The code sets up and sends an email and the variable in question is "body_text". What is assigned to body_text is a default message to go out on many emails that can be modified by the user.
What I'd like to do is, having recognised that the default body_text has changed, then offer the user who changed it the chance to replace the default text with the new, amended, text.
Do I need to remove the hard-coded default text from the code to do this (I realise it's probably advisable, but doing that alone would take me into uncharted waters)?
How do I update the default text, whether it's held in the original macro or separate to it?
The code sets up and sends an email and the variable in question is "body_text". What is assigned to body_text is a default message to go out on many emails that can be modified by the user.
What I'd like to do is, having recognised that the default body_text has changed, then offer the user who changed it the chance to replace the default text with the new, amended, text.
Do I need to remove the hard-coded default text from the code to do this (I realise it's probably advisable, but doing that alone would take me into uncharted waters)?
How do I update the default text, whether it's held in the original macro or separate to it?