Results 1 to 2 of 2

Thread: MSHFlexgrid question

  1. #1

    Thread Starter
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    I was wondering if there is any way to detect the last row that has an entry in a certain column. Because I have a rather unique situation in which, I know that all of the rows that have an entry in a certain column will be at the top and all of the rows that have that column blank will be at the bottom. However, I need to know where that separation is made. Is there one simple function that will tell me that?
    -Ryan
    I smell varmint poontang, and the only good varmint poontang is dead varmint poontang...

    -Bill Murray, Caddyshack

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Check out TextMatrix property.

    TextMatrix(Row, Column)....so let's say you want to get the value from last row and last column:


    Code:
    With MsFlexGrid
       MsgBox .TextMatrix(.Rows - 1, Cols - 1)
    End With

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width