P
Paul Moloney
Currently, I have a template which stores an array of
product codes, and allows you to select these in a dialog box
and populate a document custom property with the selected
code:
productCodes = Array("SD", "PP", "TU", "RC", "AG", "AV")
[...]
UserForm1.ProductCode.List() = productCodes
[...]
.CustomDocumentProperties("ProductCode").Value = ProductCode.Value
I've also set up an array of the related product names:
productNames = Array("Service Delivery Platform", "PaymentsPlus",
"MobileTop-Up", "RC", "AG", "AV")
What I _want_ to do is to populate a custom document property
ProductName with the relevant product name, based on the product code
selected. How do I do this? Do I set up a two-dimensional array of
product names and product codes?
Or can I return the position in the productCodes array of the selected
product code (for example, SD is at position 0) and return the
variable in productNames at the same position? I'm afraid my VBA
knowledge doesn't come up to scratch here. Any help is appreciated,
P.
product codes, and allows you to select these in a dialog box
and populate a document custom property with the selected
code:
productCodes = Array("SD", "PP", "TU", "RC", "AG", "AV")
[...]
UserForm1.ProductCode.List() = productCodes
[...]
.CustomDocumentProperties("ProductCode").Value = ProductCode.Value
I've also set up an array of the related product names:
productNames = Array("Service Delivery Platform", "PaymentsPlus",
"MobileTop-Up", "RC", "AG", "AV")
What I _want_ to do is to populate a custom document property
ProductName with the relevant product name, based on the product code
selected. How do I do this? Do I set up a two-dimensional array of
product names and product codes?
Or can I return the position in the productCodes array of the selected
product code (for example, SD is at position 0) and return the
variable in productNames at the same position? I'm afraid my VBA
knowledge doesn't come up to scratch here. Any help is appreciated,
P.