Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 301
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Exit button on a UserForm Noemi Excel Discussion (Misc queries) 1 September 14th 06 09:37 PM
Excel 2002 SP3 - Exit button is not available - grayed out. KKStevens Setting up and Configuration of Excel 2 July 3rd 06 01:31 PM
Use the X button on a userform Greg B Excel Discussion (Misc queries) 3 May 16th 05 09:19 AM
How do i create a command button or macro to exit Microsoft Excel raj Excel Worksheet Functions 1 April 30th 05 02:17 PM
I can't turn off excel programs with the exit button. What is up. tom moore Excel Discussion (Misc queries) 1 January 15th 05 12:12 AM


All times are GMT +1. The time now is 07:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"