Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the "Do Until...Loop" in forms subroutine to insert a row in worksheet
at specified location. How do I get the row number of the new row? Private Sub cmdInsertRow_Click() Dim ws As Worksheet Dim a As Long Set ws = Worksheets("Sheet1") a = 22 'data starts at row 22 Do Until Trim(ws.Cells(a, 1)) = "" If ws.Cells(a, 1) = Me.cboRefValue.Value Then ws.Cells(a + 1, 1).EntireRow.Insert a = a + 2 Else a = a + 1 End If Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif number is greater than a number but less than another number | Excel Discussion (Misc queries) | |||
How can I click on a telephone number in an Excel 2002 spreadsheet, and have the number dialed? | Excel Discussion (Misc queries) | |||
How to calculate number of occurencies of a specific number number | Excel Discussion (Misc queries) | |||
find an exact number in a different sheet and use the cell containing the number to output information | Excel Programming | |||
Rounding a number to a multiple quantity that adds to a fixed total number | Excel Worksheet Functions |