View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Garry Jones Garry Jones is offline
external usenet poster
 
Posts: 28
Default Windows versions diff

On UserForm_Initialize() I read in a value to a text box.

This following code then highlights the text in that text box.

With TextBox1
..SelStart = 0
..SelLength = Len(.Text)
..SetFocus
End With

But this only works on Windows 98, but not on Windows 2000.

Is there any other code that is universal and will give me the same
effect in both operating systems?

Garry Jones