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!

Remove controls from Title bar 1

Status
Not open for further replies.

Rodopi

Technical User
Mar 20, 2002
36
GB
I have a userform in Powerpoint I wish to remove all controls from the Title bar so user cannot quit.
I know how to do this in VB, but unable to find the solution in VBA.

I'm new to this, can anyone help?


Regards
Rodopi
 
To actually remove the buttons requires extensive coding using the API, but this procedure will disable the close button, having th esame effect:

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then Cancel = True
End Sub

Just place that code in the userform codepane. It also disables Alt-F4, and effectively means that the form can only be dismissed by code.

A.C.
 
Many thanks acron, That worked a treat.

Regards
Rodopi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top