help speed up code (the code copies info from userform to sheet)
Posted by Steve W on May 20, 2001 4:12 PM
Does anyone know how I can speed this up. Now it takes 30 seconds to run, thats to slow for me. I use basicly the same concept on a userform activate to load the form and it happens in seconds.
Is there a better way it didn't seem to work on a userform deactivate.
Thanks for any help
steve w
Private Sub CommandButton3_Click()
Sheet7.Range("c1") = RefEdit1.Value
Sheet7.Range("c2") = RefEdit2.Value
Sheet7.Range("c3") = RefEdit3.Value
Sheet7.Range("c4") = RefEdit4.Value
Sheet7.Range("c5") = RefEdit5.Value
Sheet7.Range("c6") = RefEdit6.Value
Sheet7.Range("c7") = RefEdit7.Value
Sheet7.Range("c8") = RefEdit8.Value
Sheet7.Range("f1") = RefEdit9.Value
Sheet7.Range("f2") = RefEdit10.Value
Sheet7.Range("f3") = RefEdit11.Value
Sheet7.Range("f4") = RefEdit12.Value
Sheet7.Range("f5") = RefEdit13.Value
Sheet7.Range("f6") = RefEdit14.Value
Sheet7.Range("f7") = RefEdit15.Value
Sheet7.Range("f8") = RefEdit16.Value
Sheet7.Range("I1") = RefEdit17.Value
Sheet7.Range("I2") = RefEdit18.Value
Sheet7.Range("I3") = RefEdit19.Value
Sheet7.Range("I4") = RefEdit20.Value
Sheet7.Range("I5") = RefEdit21.Value
Sheet7.Range("I6") = RefEdit22.Value
Sheet7.Range("I7") = RefEdit23.Value
Sheet7.Range("I8") = RefEdit24.Value
End Sub