0
私のユーザーフォームには、テーブルの特定のセルに値を表示する必要があるテキストボックスはほとんどありません。どのように私はこれらの値をセルに印刷するのですか?あなたのコードで表示と同じようにテキストボックスの値をセルにどのように表示するのですか?
'add a new employee to the bottom of the list
'last_row = sht.Cells(sht.Rows.Count, "A").End(xlUp).Row
Cells(last_row, 1) = Box_FirstName.Value
Columns("A:A").EntireColumn.AutoFit
Cells(last_row, 2) = Box_LastName.Value.Value
Columns("B:B").EntireColumn.AutoFit
Cells(last_row, 3) = Box_Adress.Value.Value
Columns("C:C").EntireColumn.AutoFit
Cells(last_row, 4) = Box_ID.Value.Value
Columns("D:D").EntireColumn.AutoFit
複数のユーザーフォームを持っている場合は、TextBox名の前に 'Form_Name'を追加することをお勧めします。 –
私は文字列変数として意味しました、ごめんなさい、その部分を忘れました。 –