Hi Robin,
Have you tried the code that Cetin gave you? The objtoclient will return a 0 for the Left of any columns that are no longer visible because the user scrolled the horizontal scrollbar or tabbed over to the right. Cetin appears to have a pretty good grasp of what you asked for.
>Hi Cetin
>
>I want to know what the 1st visible column is after the locked columns, even if the user has used the vertical scrollbar.
>
>When I say visible I dont mean the property, I mean that the user can see in the grid.
>
>Robin
>
>
>>>If I have a grid with several columns locked, is it possible work out what the first visible column on the right of the split is?
>>
>>From
http://www.foxite.com/archives/column-locking-in-a-grid-0000198556.htm>>
>>LPARAMETERS toGrid
>>Local ix
>>With toGrid
>> For ix = .LockColumns+1 To .ColumnCount
>> If Objtoclient(.Columns(m.ix),2) > 0
>> Return m.ix
>> Endif
>> Endfor
>>Endwith
>>return -1
>>Cetin