View Single Post
 
Old 08-03-2011, 08:34 AM
Joe Patrick Joe Patrick is offline Windows 7 64bit Office 2007
Advanced Beginner
 
Join Date: May 2011
Posts: 33
Joe Patrick is on a distinguished road
Default ComboBox ListIndex = -1 even though it does NOT = -1

Hi,

I'm using this code to tell the user to choose something from the list provided but every time you open the document it's like starting all over!

Code:
If ActiveDocument.ComboBox8.Value = "-Select-" Or ActiveDocument.ComboBox8.ListIndex = -1 Then
MsgBox "Please select from list provided."
Exit Sub
End If
We open the doc, choose from the list, close the doc. The next time we open the doc and try to close it it tells us to choose from the list again!!! Why?!?

Please help.
Reply With Quote