Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Runtime code update

$
0
0

using 2007

I have a macro that uses text2 to store data for a particular analysis - i would like to provide a combobox of the text fields from which the user can select the text field he desires.

the problem is how to update the code -

For Each jTask In ActiveSelection.Tasks
    'set tag for selected task
    jTask.Text2 = 1
    'scan dependencies and set tag
    For Each dep In jTask.TaskDependencies
        dep.From.Text2 = 1
        dep.To.Text2 = 1
    Next
 Next

sooooo - if the user selects text6, how do I dynamically change the code so that

jTask.Text6 = 1   etc

regards,

gman


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>