UserForm:Resume to ListBox1

D

damorrison

I have this code in a TextBox in a UserForm.

If ListBox1.Value = "" Then
MsgBox "You need to Select Routes or Cuts"

I would like to then resume to ListBox1
 
D

Dave Peterson

Maybe...

Me.ListBox1.SetFocus
I have this code in a TextBox in a UserForm.

If ListBox1.Value = "" Then
MsgBox "You need to Select Routes or Cuts"

I would like to then resume to ListBox1
 
D

damorrison

Excelant,
Thanks Dave
Works Great
Dave


Dave Peterson wrote:
Maybe...

Me.ListBox1.SetFocus

Dave Peterson
 
Top