Results 1 to 9 of 9

Range Question

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-21-2012
    Location
    illinois
    MS-Off Ver
    Excel 2010
    Posts
    242

    Range Question

    I have a Range E9:E17 that I would like to look at one cell at a time. I figured I would use this code to do that. My first question is how would I put the value of each of those cells into something like Part I have below without a mismatch?
    Second Question how do I handle it if someone adds a row to the spreadsheet?


    
    Sub test()
    
    Dim Part as string
    
    Dim rngCell As Range
    For Each rngCell In Range("e9:e17")
      'what you want to do with the cell
    Next rngCell
    
    
    
    
    
    
    End Sub
    Last edited by JosephP; 10-23-2012 at 05:11 PM. Reason: correct tag

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1