This may sound like an easy question but the answers on the net all point to the basics of setting up an environment and referencing it in the project/package.
The scena
Most answers from blogs and forums will now say that you need to create an environment and link it to the package, blah, blah. However, none of them mentions the fact that in order for the option to be enabled, you must have variables with MATCHING DATA TYPES!
Allow me to demonstrate.
Demo
Test, String
Demo
to the package Package1.dtsx
"Use environment variable
option is still disabled/grayed out. Why? Because the data types are not matching. IMPORTANT - variable names don't have to match, only the data types. Aha, Int32, 0
Test
"Use environment variable"
option is now enabled?
Before you can map them together, you have to click References and Add the Environment that you created for that package, then it will be enabled for you.