+ Reply to Thread
Results 1 to 4 of 4

for loops

Hybrid View

  1. #1
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,997

    Re: for loops

    For intCounter = 1 To 3
    
    If Me.Controls("CheckBox" & intCounter).value = True Then
        iRow = ws.Cells(Rows.Count, 1) _
        .End(xlUp).Offset(1, 0).Row
        ws.Cells(iRow, 3).Value = "A" & intCounter
        ws.Cells(iRow, 1).Value = Me.TextBox2.Value
        ws.Cells(iRow, 7).Value = Me.TEXT_BOX_ENGINE_HOURS.Value
    End If
    Next intCounter
    Everyone who confuses correlation and causation ends up dead.

  2. #2
    Registered User
    Join Date
    10-05-2010
    Location
    oxford, england
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: for loops

    Quote Originally Posted by romperstomper View Post
    For intCounter = 1 To 3
    
    If Me.Controls("CheckBox" & intCounter).value = True Then
        iRow = ws.Cells(Rows.Count, 1) _
        .End(xlUp).Offset(1, 0).Row
        ws.Cells(iRow, 3).Value = "A" & intCounter
        ws.Cells(iRow, 1).Value = Me.TextBox2.Value
        ws.Cells(iRow, 7).Value = Me.TEXT_BOX_ENGINE_HOURS.Value
    End If
    Next intCounter
    That worked thanks very much

+ 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