How to create a wizard to copy functions while replacing the variables linked in it

How to create a wizard to copy functions while replacing the variables linked in it

Hi Everyone, I wanted to know how to go about creating a wizard where I could make a copy of a screen switch function while replacing the variable attached in the function.
I have to make many similar Extended Trend Screen Switch functions, so if I could somehow copy the function and replace all the curve variables with another set my engineering time would drastically reduce. My variables are all 61850 variables so I could use a common find and replace for all my variables. Would be extremely helpful if someone could share a similar wizard that I could edit to suit my application.

This is a migrated post! Originally posted on 18.05.2015 by user nishranth. Please be aware that information can be outdated.