
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following code that allows the user to add a value to an existing multi value parameter in an idw. What I would like help on is to get this to also add the same value to the standard.idw template.
So after running this code on the current doc, it should open the Standard.idw file from the template directory and run the same code, save and close the Standard.idw .
I can get it to add the value in the current file and open the standard.idw , but I cant figure out how to add the value to the standard.idw
any help is appreciated
newValue = InputBox("Enter a New Material", "iLogic", " ")
values = MultiValue.List("Material")
ValueCount = values.count
Dim MyArrayList(ValueCount) As String
For i = 0 To ValueCount
If i=ValueCount Then
'Last value, add new one
MyArrayList(i) = newValue
Else
'add existing values to new array
MyArrayList(i) = values(i)
End If
Next
MultiValue.List("Material") = MyArrayList
Solved! Go to Solution.