Results 1 to 7 of 7

Thread: This Question involves knowledge of Excel 2000

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    42

    This Question involves knowledge of Excel 2000

    Hi,
    I currently have a combobox which I want to add items on a spreadsheet in Excel 2000. I read everywhere that when you right click the combobox, go into "format control", there should be a control tab, where you can enter the range of items to add.

    There is no control tab when I enter "format control". I can always use .additem in VBA, but I want to do it in the excel which is easier.
    Anyone have this problem also?

    I know this is the wrong thread to post it in, but I am too lazy to register at another forum, since I believe people with VBA knowledge are familar with Excel too.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: This Question involves knowledge of Excel 2000

    All you get is "Size", "Protection", "Properties", and "Web" from the Format Control menu item.
    Use the ListFillRange property in the property window to designate a cell range of values to use for the items.
    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    42

    Re: This Question involves knowledge of Excel 2000

    Thanks
    Even on the helpfile included with the Excel says use the control tab. Anyways that property requires a range. The data I want to add in are in non adjacent cells. For example, R5C26, R5C36, etc.

    How would I do this?

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: This Question involves knowledge of Excel 2000

    Create a new Range that contains linked cells to those non-adjacent cells. Then set the cbo property to use the new range which is just gathering up the non-adjacent cells for use in the cbo.
    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    42

    Re: This Question involves knowledge of Excel 2000

    Thank you Rob for the helpful advice. I was wondering can you reference a range from another sheet for the listfillrange property? So far from all my tests, I can not.

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    42

    Re: This Question involves knowledge of Excel 2000

    nevermind, I found a way. Just insert|name|define the names and then just set listfillrange property to it. Thanks anyways!

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: This Question involves knowledge of Excel 2000

    Oops, sorry for the delay. I was busy in Chit Chat Forum most of the morning.

    You can even reference ranges from other workbooks by identifing the workbook name and then an "!" followed by the named range. Although, Excel actually opens the referenced workbook behind the scenes.
    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width