Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Expand the Height of a form if "Not Managed" selected

i need some ideas on expanding the height of a form when a comboBox item is
selected. I have the code to display the Items but cannot get the Height to
increase.
Here is what i have. Thanks
-mark
Private Sub cboSvctxt_Change()
If cboSvctxt.Value = "Not Managed" Then
Label12.Visible = True
Label13.Visible = True
txtHost.Visible = True
txtIP.Visible = True
ExpandForm 289
Else
End If
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Expand the Height of a form if "Not Managed" selected

Ok Figured this one out. had to make a ExpandForm Sub function.
here is code if anyone cares...
rivate Sub ExpandForm(iTo As Integer)
Dim y As Long
If iTo Height Then
For x = Height To iTo
Height = x
GoSub ExpandFormLoop
Next
Else
For x = Height To iTo Step -1
Height = x
GoSub ExpandFormLoop
Next
End If
Exit Sub
ExpandFormLoop:
y = 0
Do
y = y + 1
Loop Until y = 2
Return
End Sub

"Mark Cover" wrote:

i need some ideas on expanding the height of a form when a comboBox item is
selected. I have the code to display the Items but cannot get the Height to
increase.
Here is what i have. Thanks
-mark
Private Sub cboSvctxt_Change()
If cboSvctxt.Value = "Not Managed" Then
Label12.Visible = True
Label13.Visible = True
txtHost.Visible = True
txtIP.Visible = True
ExpandForm 289
Else
End If
End Sub

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
any formula to convert numbers in word form, e.g. "2" as "Two"? Neeraj Excel Worksheet Functions 1 May 26th 08 01:03 PM
function to return day in the form "Monday", "Tuesday" etc given . MTro Excel Worksheet Functions 2 October 3rd 07 09:49 AM
Questionnaire sheet: Select "yes" or "no," and only one can be selected bpatterson Excel Worksheet Functions 2 April 13th 06 11:04 PM
if "a" selected from dropdown menu then show "K" in other cell LEGALMATTERS Excel Worksheet Functions 1 April 13th 06 06:05 PM


All times are GMT +1. The time now is 01:56 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"