Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default combobox exit event

I seem to have created an endless loop.

Here is the code

Private Sub POVender_Exit(ByVal Cancel As
MSForms.ReturnBoolean)

With ActiveSheet
myvalue = Cells(1, 6)
i = 1
While (myvalue < Cells(i, 7) And (i <=
Module1.VendVal))
i = i + 1
Wend
If i Module1.VendVal Then
' We are adding a new Vendor
Cells(i, 7) = POForm.POVender.Text
Module1.AddVend = True
Else
Module1.VendRow = i
' set the rest of the textbox's
Module1.AddVend = False
End If
End With

End Sub

When there is a match in list the user hits the tab key
and the rest of the textbox's on the form are filled with
the info in the row. The loop happens when there is a
match. works fine if it was not in the list.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture event when exit Column G zSplash Excel Discussion (Misc queries) 2 December 27th 04 05:28 PM
Exit Event Michael J. Malinsky Excel Programming 1 February 27th 04 06:40 PM
MSForms.TextBox Exit event isn't available in Excel class mosule lacos Excel Programming 2 December 12th 03 10:12 AM
Control Exit event Fred Excel Programming 0 November 19th 03 12:59 AM
combobox change event scrabtree23[_2_] Excel Programming 3 October 20th 03 05:56 PM


All times are GMT +1. The time now is 11:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"