Home Use UserForm Command Button to head to specific line in moduel
Reply: 0

Use UserForm Command Button to head to specific line in moduel

CptGoodar
1#
CptGoodar Published in 2017-12-07 12:18:29Z

I have created a custom UserForm with several command buttons. Is it possible than when you click one of the buttons it takes you to the next line from where you loaded the UserForm in the 1st place?

For example Module1 Line 5 opens up UserForm1 You use UserForm1's features, Command button 7 then takes you back to Module Line 6 and you continue with the rest of your macro.

Does this make sense, if so how is it possible. I tried with GoTo lines, i know there bad pratice but can get them to work.

Below is my code, im not sure if i need to referance the Module im aiming for in the code?

Private Sub CommandButton7_Click()
GoTo LineRPMCheckDone
End Sub

Thanks for any help you can provide.

Mark

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.302928 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO