PC Review


Reply
Thread Tools Rate Thread

Changing page height while in a multipage

 
 
Memphis
Guest
Posts: n/a
 
      25th Feb 2010
Hello guys,
I have a UserForm with a Multipage, this multipage has 10 pages.
I would like to cnahge the Height of only one page (Page3) from 400 to 200
while I am visiting this page and revert to 400 when I visit any of the other
pages.
You see, the other pages have lots of txt boxes and lbls, but Page3 has only
a handful of txt and lbls and I would like to shrink its height.

I can do this by clicking on a command button, but would like to have it
happen automatically for the user.

Thank you

 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      25th Feb 2010
' in the user form module

Private Sub MultiPage1_Change()
With MultiPage1
If .Value = 2 Then
.Height = 200
Else
.Height = 400
End If
End With
End Sub

Note the index of the first page is 0, assuming Page3 is the 3rd page its
index is 2

Regards,
Peter T


"Memphis" <(E-Mail Removed)> wrote in message
news:85BFDA37-64B4-43A2-9697-(E-Mail Removed)...
> Hello guys,
> I have a UserForm with a Multipage, this multipage has 10 pages.
> I would like to cnahge the Height of only one page (Page3) from 400 to 200
> while I am visiting this page and revert to 400 when I visit any of the
> other
> pages.
> You see, the other pages have lots of txt boxes and lbls, but Page3 has
> only
> a handful of txt and lbls and I would like to shrink its height.
>
> I can do this by clicking on a command button, but would like to have it
> happen automatically for the user.
>
> Thank you
>



 
Reply With Quote
 
Memphis
Guest
Posts: n/a
 
      26th Feb 2010
It worked like a charm, thank you Peter ;-)

Memphis.
______________

"Peter T" wrote:

> ' in the user form module
>
> Private Sub MultiPage1_Change()
> With MultiPage1
> If .Value = 2 Then
> .Height = 200
> Else
> .Height = 400
> End If
> End With
> End Sub
>
> Note the index of the first page is 0, assuming Page3 is the 3rd page its
> index is 2
>
> Regards,
> Peter T
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the height of a page header Abay Microsoft Access Reports 3 4th Jun 2009 03:27 AM
need to dbl row height without changing height of cell next to it =?Utf-8?B?RXhjZWwtSWxsaXRlcmF0ZQ==?= Microsoft Excel New Users 1 16th May 2006 01:08 AM
Updating Multipage height =?Utf-8?B?RGVubmlz?= Microsoft ASP .NET 0 1st Feb 2006 09:25 PM
Changing height of text box control as row height changes Brett Microsoft Access Form Coding 1 18th Jan 2006 07:57 AM
Changing Page Setup, slide height/width. Mike M. Microsoft Powerpoint 4 21st Jan 2004 01:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 AM.