mutlipage in the center of userform

  • Thread starter Thread starter Pierre via OfficeKB.com
  • Start date Start date
P

Pierre via OfficeKB.com

Hi Experts,

I have a userform that fills the screen.
On the userform i have a multipage.

I would like the multipage centered on the userform....

I do not know how to do that in VBA.
Could anybody please help me ?
thanks,
Pierre
 
Pierre,

Add this activate code into your userform

Private Sub UserForm_Activate()
With Me
MultiPage1.Left = (.Width - MultiPage1.Width) / 2
MultiPage1.Top = (.Height - MultiPage1.Height) / 2
End With
End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Multipage control 3
Userform hides by itself 1
Userform - Return Control Clicked 5
userform and printpreview 2
Multipage error 1
a way to print 4
Multipage Buttons?? 6
Userform with 1024+ textboxes 13

Back
Top