Example using a for loop and an if-then-else for a form with a set of radio buttons named choice1 (note that the loop covers all elements of the form named OrderForm): binSize = False for i = 0 to Document.OrderForm.Elements.Count -1 if Document.OrderForm.Elements(i).Name = "choice1" then if Document.OrderForm.Elements(i).Checked then binSize = True strSize = "Size: " & Document.OrderForm.Elements(i).Value exit for end if end if next |