Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
userform50 を超えるデータ ポイントがキャプチャされている場所があります。ほとんどがユーザー エントリで、他のデータベースからのエントリはほとんどありません。それらをExcelに転送したい。これを行うには、データ ポイントごとに以下を記述するよりも良い方法はありますか?
userform
Range("A1").Value = TextBox44.Value
次のような for each ステートメントを使用します。
Dim intRow As Integer intRow = 1 For Each tbTextBox In Me.Controls If TypeName(tbTextBox) = "TextBox" Then Cells(intRow, 1) = tbTextBox.Value intRow = intRow + 1 End If Next
これはテストされていないため、軽微なエラーが発生する可能性があります