Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 446

Click submit in userform to fill data in next row

$
0
0

I created a userform.

If I click submit I get next cell selected. When I run the userform again data are pasted into the same cells like before.

This is VBA part of the "submit" command on the userform:

Private Sub CommandButton2_Click()    Sheets("Test").Range("A2").value = TextBox3.value    Sheets("Test").Range("B2").value = TextBox4.Text    Sheets("Test").Range("C2").value = TextBox5.Text    Sheets("Test").Range("D2").value = TextBox6.Text    Sheets("Test").Range("E2").value = ComboBox1.Text    Unload MeEnd Sub

I need when I press submit to go to next row and paste all data from userform.


Viewing all articles
Browse latest Browse all 446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>