Results 1 to 3 of 3

Thread: Next Cell

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    13

    Next Cell

    Hello,

    I have a for each that moves from cell to cell in one column. And what i want is, when the for each is in one cell i want to know what is the value of the cell underneath, because if is a determined value i have to block the cell where the for each is placed.

    Thanks

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Next Cell

    post the code u are using.....
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Next Cell

    Use the .Offset property of a cell to return the value of the cell underneath it.

    VB Code:
    1. MyValue = MyCell.Offset(1, 0).Value
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

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