Results 1 to 2 of 2

Thread: loop through each cell in a grid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Location
    South Africa
    Posts
    126

    loop through each cell in a grid

    Does anyone know how to loop through every cell in a grid in search of text??
    do i use the for....next loop?? sample code please

    Thanks

    Brian
    Passed without Knowledge, has no Future

    MCSE, MCP, SQL,

  2. #2
    Fanatic Member khalik_ash's Avatar
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    724
    Code:
    dim rw as integer
    dim cl as integer
    
    ' msf is the grid name
    
     for rw=1 to msf.rows-1
      for cl=0 to msf.cols-1
        if msf.textmatrix(rw,cl)=someting then
    
         end if
      next
    next

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