Hi,

I have 3 lines on my form - linemove, line1 and line2. I also have a text box and a command button.

The user can enter the number 1 or 2 into the text box. When they click the command button, the coordinates of linemove should match those exactly of line1 or line2 - depending on what number they have typed in the text box.

I thought this code would work, but it doesn't:

Private Sub Cmdchange_Click()
Linemove.X1 = Line & Str(Text1.Text).X1
Linemove.X2 = Line & Str(Text1.Text).X2
Linemove.Y1 = Line & Str(Text1.Text).Y1
Linemove.Y2 = Line & Str(Text1.Text).Y2
End Sub

I get an error and 'Line' is highlighted. Could someone please help me out?

Thanks.