|
-
Feb 18th, 2006, 01:28 PM
#1
Thread Starter
Lively Member
[RESOLVED] change the size of combobox with column size
i have a cmb1 on column C
i wana change the size of combobox with column size
-
Feb 18th, 2006, 02:00 PM
#2
Re: change the size of combobox with column size
Right-click it, choose Format Control. Go to Properties tab and choose Move and size with cells.
zaza
-
Feb 19th, 2006, 01:53 AM
#3
Thread Starter
Lively Member
Re: change the size of combobox with column size
ya it working fine
how the selected item from the combo box , will apear on cell
-
Feb 19th, 2006, 02:02 AM
#4
Thread Starter
Lively Member
Re: change the size of combobox with column size
how the combox will invisible after item select
-
Feb 19th, 2006, 02:08 AM
#5
Thread Starter
Lively Member
Re: change the size of combobox with column size
on cell click combo will apear otherwise remain invisible
plz help
-
Feb 19th, 2006, 03:53 AM
#6
Re: change the size of combobox with column size
I think this is what you are asking for.
VB Code:
Option Explicit
'Behind sheet1 with a Combox1 residing in Cell A1
Private Sub ComboBox1_Click()
ComboBox1.Visible = False
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.Address = "$A$1" Then ComboBox1.Visible = True
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 19th, 2006, 09:37 AM
#7
Thread Starter
Lively Member
Re: change the size of combobox with column size
thankx
ya it working fine for one cell
if i have combobox on many cells like C1,C2,C3,A1,A2, than what
-
Feb 19th, 2006, 01:24 PM
#8
Re: change the size of combobox with column size
Many combos will require many evaluations.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 19th, 2006, 03:23 PM
#9
Re: change the size of combobox with column size
Are you aware that, with a cell selected, you can go to the Data menu, choose Validation and select the List type. Then, in the Source box, you can select a range from the spreadsheet and this will give you something like a combobox in the cell without having to use the object.
From the sounds of it, this would be more up your street.
zaza
-
Feb 21st, 2006, 06:54 AM
#10
Thread Starter
Lively Member
Re: change the size of combobox with column size
ya this methodis working fine
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|