Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2011, 08:34 AM
Joe Patrick Joe Patrick is offline ComboBox ListIndex = -1 even though it does NOT = -1 Windows 7 64bit ComboBox ListIndex = -1 even though it does NOT = -1 Office 2007
Advanced Beginner
ComboBox ListIndex = -1 even though it does NOT = -1
 
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox ListIndex = -1 even though it does NOT = -1 Code to export value from ComboBox ilkks Word VBA 7 05-25-2011 04:06 AM
Textbox updating from combobox selection paxile2k Word VBA 0 10-26-2010 02:30 PM
How to use the content of a combobox for {IF} field? Melaanie Word 0 06-14-2010 02:00 AM
ComboBox ListIndex = -1 even though it does NOT = -1 Array into ComboBox + Macro-Text into ActiveDocument Vivi Word VBA 1 01-27-2010 07:03 AM
ComboBox ListIndex = -1 even though it does NOT = -1 Combobox manipulation vsempoux Word VBA 3 10-31-2009 08:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft