"Expected In": Error within a For Each loop

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: "Expected In": Error within a For Each loop

  1. #1
    Board Regular
    Join Date
    Jul 2014
    Posts
    317
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default "Expected In": Error within a For Each loop

     
    Greetings,

    What are the limitations for establishing ranges using "For Each" loops?

    I am receiving an "Expected In" error on the line below. I am going to be stepping up the sheet but would like the last test integer value to occur simultaneous to the second row value. How is best to do this?

    Code:
    For Each H from 1 to Cells(2,"A").Row

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    5,146
    Post Thanks / Like
    Mentioned
    111 Post(s)
    Tagged
    4 Thread(s)

    Default Re: "Expected In": Error within a For Each loop

      
    Have a look here for details on loops
    https://www.exceltrick.com/formulas_...e-until-loops/
    - Posting guidelines, forum rules and terms of use
    - Try searching for your answer first, see how
    - Read the FAQs
    - List of BB codes

    Running Office 2003 & 2013 on Win 7

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com