help please

  • Thread starter Thread starter sevep23
  • Start date Start date
S

sevep23

Hi,

I need to input two numbers into two different text boxes and then b
able to swap the 1st number with the second. I am not quite sure ho
to do this. Any ideas?

Thanks,

SEV
 
Private Sub CommandButton1_Click()
Dim str As String

str = TextBox1.Text
TextBox1.Text = TextBox2.Text
TextBox2.Text = str
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top