Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to show/hide sections of a userform?


How would I go about doing this (if it's even possible)?

For example, if someone checks a checkbox on my form, I want a textbo
to appear underneath for more info

--
madblok
-----------------------------------------------------------------------
madbloke's Profile: http://www.excelforum.com/member.php...fo&userid=1442
View this thread: http://www.excelforum.com/showthread.php?threadid=26686

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to show/hide sections of a userform?

You can make a userform that has a height of 100 for example. Then either
in design mode or the initialize event, set the height to 50 (as an
example). Before doing that, put your textbox beyond 50. Now, in the click
event of the checkbox adjust the height of the userform

if Checkbox1 then
userform1.Height = 100
else
userform1.Height = 50
End if

--
Regards,
Tom Ogilvy

"madbloke" wrote in message
...

How would I go about doing this (if it's even possible)?

For example, if someone checks a checkbox on my form, I want a textbox
to appear underneath for more info.


--
madbloke
------------------------------------------------------------------------
madbloke's Profile:

http://www.excelforum.com/member.php...o&userid=14422
View this thread: http://www.excelforum.com/showthread...hreadid=266861



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How to show/hide sections of a userform?


Everything on a userform has a Visible property. To show
a textbox when a check box is ticked, use:

Private Sub CheckBox1_Click()

CommandButton1.Visible = CheckBox1.Value

End Sub


-----Original Message-----

How would I go about doing this (if it's even possible)?

For example, if someone checks a checkbox on my form, I

want a textbox
to appear underneath for more info.


--
madbloke
----------------------------------------------------------

--------------
madbloke's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=14422
View this thread:

http://www.excelforum.com/showthread...hreadid=266861

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide Tab in TabSheet on UserForm bforster1[_18_] Excel Programming 1 October 4th 04 07:26 PM
Hide all images on userform Jason Morin[_3_] Excel Programming 3 April 26th 04 09:20 PM
Userform.hide / show papou[_7_] Excel Programming 0 September 15th 03 03:12 PM
Hide/Show modeless userform when activating/deactivating workbooks Jeremy Gollehon[_2_] Excel Programming 0 August 28th 03 11:05 PM
hide a textbox on a userform? Bill Lunney Excel Programming 2 July 31st 03 08:57 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"