Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

how do i make a button from a userform exit onto the document in .

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pieface - 17 Apr 2007 16:08 GMT
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 - 17 Apr 2007 19:35 GMT
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

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.