View Single Post
 
Old 06-08-2009, 12:52 PM
DrewB DrewB is offline Windows XP Office 2003
Novice
 
Join Date: Feb 2009
Posts: 6
DrewB is on a distinguished road
Default VB Code.. COmbo boxes

I have not done much coding for Word Docs, I have done some in MS Access and what i would like to do I know how to do in Access so I'm sure it can be done in word as well.. here is the deal:
I have about 20 combo boxes in a Word doc and I would like to be able to use a loop to set certain properties or update the text in them, I have them named in this sort of convention ComboBox1, ComboBox2... ComboBox20. I would imagine I should be able to do something like this as I can with Access but it doesn't quite work:

Code:
crt =1
 
do while cnt <= 20
     me("ComboBox" & ctr).value = "I am box #" & ctr
     ctr= ctr + 1
loop
is there a way to do this in MS word??

Last edited by Bird_FAT; 06-08-2009 at 11:31 PM.
Reply With Quote