Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It seems to me you need a small userform with just a textbox, a range to show the order of data entry, say:</p> <p>Group A | E | D | F | G</p> <p>And a little code to go with the form, say:</p> <pre><code>Dim LastCol As Integer Dim CurRow As Integer Private Sub UpdateCells() Dim Col As Variant Dim ColumnOrder As Range 'Range that specifies data entry order' Set ColumnOrder = Range("A3:A15") LastCol = LastCol + 1 If LastCol &gt; WorksheetFunction.CountA(ColumnOrder) Then LastCol = 1 CurRow = CurRow + 1 End If Col = Range("A3").Offset(0, LastCol) Range(Col &amp; CurRow) = TextBox1.Value TextBox1 = "" End Sub Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If KeyCode = 13 Then UpdateCells End If End Sub Private Sub UserForm_Initialize() CurRow = ActiveCell.Row End Sub </code></pre> <p>Edit Re Comment</p> <p>In Excel, the last row can be a bit tricky in that Excel does not update the range after deletions until the workbook is saved. One one these may suit:</p> <pre><code>Function FindLastRow() 'Assuming that data starts in A1' r = ActiveSheet.UsedRange.Rows.Count c = ActiveSheet.UsedRange.Columns.Count FindLastRow = r End Function </code></pre> <p>.</p> <pre><code>Sub LastRow() LastRowA = ExecuteExcel4Macro("GET.DOCUMENT(10)") LastRowB = ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Row End Sub </code></pre> <p>Further information: <a href="http://www.tek-tips.com/faqs.cfm?fid=2115" rel="nofollow noreferrer">http://www.tek-tips.com/faqs.cfm?fid=2115</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload