|
|
Changing page height while in a multipage
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
|
|
0
|
|
|
|
Reply
|
Utf
|
2/25/2010 10:53:02 PM |
|
' 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" <Memphis@discussions.microsoft.com> wrote in message
news:85BFDA37-64B4-43A2-9697-D52E3DA52944@microsoft.com...
> 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
>
|
|
0
|
|
|
|
Reply
|
Peter
|
2/25/2010 11:14:28 PM
|
|
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
>
>
|
|
0
|
|
|
|
Reply
|
Utf
|
2/26/2010 9:13:01 PM
|
|
|
2 Replies
227 Views
(page loaded in 0.073 seconds)
Similiar Articles: Multipage, controls-collection and events (XL2003, VBA ...But going this way, how to assign the controls to the Page of Multipage control? ... Userform with a Multipage control, which is ... Pivot table Control of height ... A2007 PDF email changing orientation - microsoft.public.access ...... orientation while using ... How to change a single page orientation in one ... different page orientation within the same multipage document ... A2007 PDF email changing ... Row Height Screen Tip - microsoft.public.excel.miscChanging row height/column width & see the value change while drag Before Excel 2007, in older versions, you could see the row height or column width change before your ... Template auto adjust when content size change - microsoft.public ...making a row height automatically adjust to cell contents ..... change the row height ... It works fine with the mainmenue and the contentarea. While changing my Browser ... Word 2003-Page Orientation - microsoft.public.word.docmanagement ...... dimensions of the page > are not reversed (i.e. width 8.5" and height ... different page orientation within the same multipage document ... ... How to Change Page Orientation in ... Supress page footer on all but last page. - microsoft.public ...... code in this group footer's Format event to adjust its > height to fill the page ... Change footer for last page only? - microsoft.public.mac.office ... Supress page footer ... Is there a way to convert a .TIF file in VB6 - microsoft.public.vb ...So you're suggesting that somebody change the ... stayed away from this newsgroup for quite a while. ... If you convert a 10 page multipage TIFF to JPEG you will get ... Word forms and repeating data in fields within same document ...... br><br>I want to create a multipage form ... again and now I want to fill out page 2 of that document and the only thing I am changing ... wrote: > Tarpon_John, > > While ... ListBox Size and Screen Resolution - microsoft.public.excel ...The listbox keeps changing sizes depending on the screen resolution. For example, I created a new workbook while in 1440x900 ... 26.25 .Width = 97.5 .Height ... Section width greater than the page width - microsoft.public ...... large number of fields that it pulls while ... the font size matching the control's height ... Section width greater than the page ... Change the width of your margins ... Also Excel - Userform - Background Color Of Multipage - Is there a way ...It tries - the border changes height, but the ... the image is of the disabled fields while ... I was wondering if it is possible to change the color of a page on a MultiPage ... Excel - Formatting A Simple Multipage Userform - I am creating ...On every MultiPage.Page I have many controls ... code I can add to MultiPage1_Change() that will resize the Userform when a page is selected? I just want to change the height ... forms - Multipage change action when the controls are dynamicaly ...Multipage change action when the controls are dynamicaly ... Dim i, k, l As Integer i = 0 l = 1 Do While i ... How to change defult colors used in VBA code/Macro result ... How to Change Your Home Page in Internet Explorer - Microsoft SupportThis article describes how to change your home page in Internet Explorer. How to: Set the Height and Width of Tabs in a MultiPage and a ...How to: Change the Column Widths of a Multi-Column List Box ... The user clicks the SpinButton controls to adjust the height and width of the tabs within the MultiPage ... 7/24/2012 9:08:56 AM
|
|
|
|
|
|
|
|
|