Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Strange Excel Bug?


In my Private Sub List1_Enter I assign the row source to a
worksheet and a variable - mline - to a particular row in that
sheet. The purpose is, when the listbox opens, to have that line
selected and highlighted.

List1.ListIndex = mLine
List1.Selected(mLine) = True

This works most of the time, but sometimes the selected
row is *not* mline.

To check further, I added this (on the very next line)

frmReports.Caption = mCaption & " " & mLine

This shows the when the wrong line is highlit, mline
does have the right value.

Does anyone know, under what conditions could
Excel - with the code above fail to set the wanted
line to the value of mline ?

Thanks - Kirk
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
Something Strange Happens on My Excel Workbook Accesshelp Excel Discussion (Misc queries) 7 December 15th 09 06:20 PM
Strange Problem in EXCEL Dharmesh Excel Worksheet Functions 5 October 14th 08 09:33 PM
Strange Excel error D23 Excel Discussion (Misc queries) 3 August 17th 07 09:01 PM
Strange Excel Problem RodShaw2 Setting up and Configuration of Excel 2 July 5th 05 02:19 PM
Getting a Strange Message from Excel Marty Excel Programming 3 May 25th 04 03:11 PM


All times are GMT +1. The time now is 01:39 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"