PC Review


Reply
Thread Tools Rate Thread

change the appearnce of a userform

 
 
TUNGANA KURMA RAJU
Guest
Posts: n/a
 
      26th May 2008
Is it possible design a user form with cusomised controls ?
I built a userform with multipage control.
Page 1 Page2 Page3
1 label 1 label 1 label
1 combobox 1 combobox 1 combobox
3 commandbuttons 3 commandbuttons 3 commandbuttons
10 textboxes 6textboxes 4 textboxes
is it possible redesign this userform into a compact one page form?
By putting 3 optionbuttons at top of the userform,if optionbutton1 is
selected userform with 10 textboxes be displayed,if optionbutton2 is selected
userform appearance be changed with 6 textboxes.

 
Reply With Quote
 
 
 
 
Minitman
Guest
Posts: n/a
 
      26th May 2008
Why do you want to eliminate the MultiPage control? Knowing your
motivation for change will help us to help you to find your solution.

-Minitman

On Mon, 26 May 2008 03:13:00 -0700, TUNGANA KURMA RAJU
<(E-Mail Removed)> wrote:

>Is it possible design a user form with cusomised controls ?
>I built a userform with multipage control.
>Page 1 Page2 Page3
>1 label 1 label 1 label
>1 combobox 1 combobox 1 combobox
>3 commandbuttons 3 commandbuttons 3 commandbuttons
>10 textboxes 6textboxes 4 textboxes
>is it possible redesign this userform into a compact one page form?
>By putting 3 optionbuttons at top of the userform,if optionbutton1 is
>selected userform with 10 textboxes be displayed,if optionbutton2 is selected
>userform appearance be changed with 6 textboxes.


 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      26th May 2008
Hi Tungana,

Create a Userform with a Label, a ComboBox
3 CommandButtons and 3 OptionButtons.

Add 10 TextBoxes where:

TextBoxes 1 - 4 are the TextBoxes from the
Page3 option;

TextBox5 and TextBox6 are the additional 2
TextBoxes from the Page2 option;

TextBox7 - TextBox10 are the remaining 4
TextBoxes.

In the Userform's code module, paste the
following code:

'===========>>
Option Explicit

'------------->>
Private Sub OptionButton1_Click()
Dim i As Long

For i = 1 To 10
Me.Controls("Textbox" & i).Visible = True
Next i

End Sub

'------------->>
Private Sub OptionButton2_Click()
Dim i As Long

For i = 1 To 10
Me.Controls("Textbox" & i).Visible = i < 7
Next i

End Sub

'------------->>
Private Sub OptionButton3_Click()
Dim i As Long

For i = 1 To 10
Me.Controls("Textbox" & i).Visible = i < 5
Next i

End Sub

'------------->>
Private Sub UserForm_Initialize()
Dim i As Long

For i = 1 To 10
Me.Controls("Textbox" & i).Visible = False
Next i

End Sub
'<<===========



---
Regards.
Norman


"TUNGANA KURMA RAJU" <(E-Mail Removed)> wrote in
message news:0F062ECC-94DE-4A7F-81CA-(E-Mail Removed)...
> Is it possible design a user form with cusomised controls ?
> I built a userform with multipage control.
> Page 1 Page2 Page3
> 1 label 1 label 1 label
> 1 combobox 1 combobox 1 combobox
> 3 commandbuttons 3 commandbuttons 3 commandbuttons
> 10 textboxes 6textboxes 4 textboxes
> is it possible redesign this userform into a compact one page form?
> By putting 3 optionbuttons at top of the userform,if optionbutton1 is
> selected userform with 10 textboxes be displayed,if optionbutton2 is
> selected
> userform appearance be changed with 6 textboxes.
>


 
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
UserForm Tab Name Change Sue Microsoft Excel Programming 0 21st Feb 2008 12:02 PM
Changing the appearnce of the guestlog.htm file =?Utf-8?B?SkFZ?= Microsoft Frontpage 1 1st Sep 2006 05:51 AM
Change UserForm ControlSource with VBA jim.excel@gmail.com Microsoft Excel Misc 2 24th Feb 2005 08:05 AM
After a successful Win XP SP2 install - Unusual appearnce of program buttons on the taskbar Larry Diaz Windows XP General 3 16th Aug 2004 06:33 PM
How to preserve the desktop appearnce across reboots ? sassan Microsoft Windows 2000 New Users 0 3rd Jan 2004 01:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:09 AM.