Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to add a combobox in excel's cell with vb.net

how to add a combobox in excel's cell with vb.net

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanyexian
    wrote on last edited by
    #1

    Hi,everyone!I want to add a combobox in a cell of excel file with VB.net,but when I used sheet.shapes.addxxx fuction,I found that there were "addChart" and others but no addCombobox. :omg: What should I do could add combobox in a cell with vb.net?Please help and give me suggestion!Thanks a lot!

    D D 2 Replies Last reply
    0
    • S sanyexian

      Hi,everyone!I want to add a combobox in a cell of excel file with VB.net,but when I used sheet.shapes.addxxx fuction,I found that there were "addChart" and others but no addCombobox. :omg: What should I do could add combobox in a cell with vb.net?Please help and give me suggestion!Thanks a lot!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You don't. ComboBox's sit on top of the sheet, not in it's cells.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      S 1 Reply Last reply
      0
      • S sanyexian

        Hi,everyone!I want to add a combobox in a cell of excel file with VB.net,but when I used sheet.shapes.addxxx fuction,I found that there were "addChart" and others but no addCombobox. :omg: What should I do could add combobox in a cell with vb.net?Please help and give me suggestion!Thanks a lot!

        D Offline
        D Offline
        DaveAuld
        wrote on last edited by
        #3

        In Excel 2007, you need to first display the Developer Ribbon from the Excel Options | Popular panel. Then on the Developer Ribbon, Insert Control | ActiveX Combo (Form Control Combo will be disabled) As Dave has already stated, the control sits on top of the sheet, and is not 'inside' a cell. They just happen to move relative to the cells where you placed them (by default), if you insert and delete / resize cells. You can change the move/resize action from the objects properties though.

        Dave Don't forget to rate messages!
        Find Me On: Web|Facebook|Twitter|LinkedIn
        Waving? dave.m.auld[at]googlewave.com

        S 1 Reply Last reply
        0
        • D DaveAuld

          In Excel 2007, you need to first display the Developer Ribbon from the Excel Options | Popular panel. Then on the Developer Ribbon, Insert Control | ActiveX Combo (Form Control Combo will be disabled) As Dave has already stated, the control sits on top of the sheet, and is not 'inside' a cell. They just happen to move relative to the cells where you placed them (by default), if you insert and delete / resize cells. You can change the move/resize action from the objects properties though.

          Dave Don't forget to rate messages!
          Find Me On: Web|Facebook|Twitter|LinkedIn
          Waving? dave.m.auld[at]googlewave.com

          S Offline
          S Offline
          sanyexian
          wrote on last edited by
          #4

          :omg: Thank you!I understand now.

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            You don't. ComboBox's sit on top of the sheet, not in it's cells.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            S Offline
            S Offline
            sanyexian
            wrote on last edited by
            #5

            Thanks a lot!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups