+ Reply to Thread
Results 1 to 2 of 2

how to loop thru cell in 2 columns

  1. #1
    DMB
    Guest

    how to loop thru cell in 2 columns

    How do I get the cell information From the E cels based on the F cells

    Dim sht As Worksheet
    Dim cel As Range
    Dim j As Integer
    For Each sht In Worksheets
    For Each cel In sht.Range("E:E")
    If Cel= TotalHours.Projects.Text Then
    'TotalHoursToDate.Text = TotalHoursToDate.Text +
    Range(Sheet1!Range("E" + j))
    'TotalHoursToDate.Text = 33
    End If
    Next cel
    Next sht


  2. #2
    JNW
    Guest

    RE: how to loop thru cell in 2 columns

    I think anyone here will need more information in order to help you out.

    "DMB" wrote:

    > How do I get the cell information From the E cels based on the F cells
    >
    > Dim sht As Worksheet
    > Dim cel As Range
    > Dim j As Integer
    > For Each sht In Worksheets
    > For Each cel In sht.Range("E:E")
    > If Cel= TotalHours.Projects.Text Then
    > 'TotalHoursToDate.Text = TotalHoursToDate.Text +
    > Range(Sheet1!Range("E" + j))
    > 'TotalHoursToDate.Text = 33
    > End If
    > Next cel
    > Next sht
    >


+ Reply to Thread

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