ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   how do i make a button from a userform exit onto the document in . (https://www.excelbanter.com/new-users-excel/139262-how-do-i-make-button-userform-exit-onto-document.html)

Pieface

how do i make a button from a userform exit onto the document in .
 
I have a userform that i created in VBE on excel but i don't know how to make
a macro on the actual document to take me from it to the form or make a
button from the form take me back to the document, could anyone give me an
answer, it's for my coursework and i need some help! Thanks

Bob Umlas

how do i make a button from a userform exit onto the document in .
 
Put a button the worksheet and assign it to a macro, say "Pieface"
Sub PieFace()
Userform1.Show
End Sub

A button on the form, to "get back to" the worksheet simply does Unload me:
Sub CloseButton()
Unload Me
End Sub

HTH
Bob Umlas
Excel MVP

"Pieface" wrote in message
...
I have a userform that i created in VBE on excel but i don't know how to

make
a macro on the actual document to take me from it to the form or make a
button from the form take me back to the document, could anyone give me an
answer, it's for my coursework and i need some help! Thanks





All times are GMT +1. The time now is 12:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com