Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this possible ?

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
Sub Bob()

Frmmain.show

Beep

End Sub



what i want to do is when frmmain loads up is to totally exit sub bob so when i close the form it doesnt beep. before anyone goes why not just take out the line beep

funnly enough that isnt actuallty my code, what i haev got is a class module set up which fires events in powerpoint but the problem is that on the auto_open it is holding values that i cant get rid of without getting out of the sub

Chance

 
Sub Bob()

Frmmain.show

if "your condition here"=true then exit sub else Beep

End Sub
 

If the form is not modal "showmodal = false" then your sub should complete after the form is opened.
 
Do you want the form to be visible after exit?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top