forTeesSake Geschrieben 4. August 2003 Geschrieben 4. August 2003 hi, ich habe das problem dass ich eine combo-dropdown in WORD fülle und jedem eintrag gerna sowas wie einen "value" zuweisen möchte. in vb geht das ohne probleme, denn da gibt es "itemdata". damit bekommt jedes element einen wert den man im nachhinein dann abfragen kann. leider gibt es in der vba programmierung "itemdata" nicht. weiss trotzdem jemand wie ich so einen wert zuweisen kann danke
forTeesSake Geschrieben 5. August 2003 Autor Geschrieben 5. August 2003 ahh endlich.. puhh. itemdata is not available in vba. but theres a pretty nice workaround: all of your optionbox entries should be appended with lets say Space$(100) , a "/" (or another seperator you like) and the "Itemdata" you want. looks smth like this: option box begin item1.......................100Spaces................/Itemdata1 item2.......................100Spaces................/Itemdata2 item3.......................100Spaces................/Itemdata3 item4.......................100Spaces................/Itemdata4 option box end the / and the "Itemdata" are not visible for the user. to read the "Iteamdata" simply split the optionbox itemvalue by / and you finally got it. great thing.
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren
Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde Dich hier an.
Jetzt anmelden