I need to get all the items from a document into an array. I have tried the following code with no luck. (Type mismatch error). Any clue what I'm doing wrong? If I just put the Name & text into a messagebox, it shows what I want, but I can't get it into the array! Thanks!
Forall i In doc.Items all(i) = (i.Name + ": " + i.Text) End Forall
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.