Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Collapse Dialog Box

Hi:


Does anyone know how to add a collapse dialog button on a
user form? A collapse dialog button is usually used in
a 'data range' box, such as in 'Chart Wizard - Step 2 of
4 - Chart Source Data' window.


Thanks in advance,
Adrian T
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Collapse Dialog Box

Use a refedit control. It is built in.

--
Regards,
Tom Ogilvy

"Adrian T" wrote in message
...
Hi:


Does anyone know how to add a collapse dialog button on a
user form? A collapse dialog button is usually used in
a 'data range' box, such as in 'Chart Wizard - Step 2 of
4 - Chart Source Data' window.


Thanks in advance,
Adrian T



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default Collapse Dialog Box

Adrian

To programmatically add a 'RefEdit' control you will need to set a reference
in advance to the library but the code could then be like that below. Click
the user for and it adds a RefEdit control and moves it down and right from
the top left of the form and then for fun uses the newly created controls
name (RefEdit1) to set the control tip

Private Sub UserForm_Click()
Dim rRefEdit As RefEdit.RefEdit
Set rRefEdit = Me.Controls.Add("Refedit.ctrl", "Refedit1", Visible)
With rRefEdit 'Uses refedit object variable
.Top = 50
.Left = 50
End With
Me.Controls("Refedit1").ControlTipText = "Tooltip using new control's name"
'uses object name
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Adrian T" wrote in message
...
Hi:


Does anyone know how to add a collapse dialog button on a
user form? A collapse dialog button is usually used in
a 'data range' box, such as in 'Chart Wizard - Step 2 of
4 - Chart Source Data' window.


Thanks in advance,
Adrian T



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
collapse rows into one Vic Excel Discussion (Misc queries) 2 September 21st 09 09:21 PM
Row Collapse control GatorVTX Excel Discussion (Misc queries) 2 January 20th 09 01:42 AM
Help Screens collapse RWN Setting up and Configuration of Excel 0 February 2nd 05 05:08 AM
UserForm collapse ? vbastarter Excel Programming 2 September 2nd 04 07:53 AM
control of dialog macro dialog box. on open Gerry Abbott Excel Programming 0 July 22nd 04 05:41 PM


All times are GMT +1. The time now is 09:36 PM.

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

About Us

"It's about Microsoft Excel"