You are on page 1of 7

Home > MSExcel > Question & Answer

MS Excel: Creating a combo box in Excel 2003/XP/2000/97


Question: I'm trying to create pull down boxes in Excel 2003/XP/2000/97 with selections to highlight and fill in the cell. How do I do that? Answer: To create a combo box in Excel, the first thing that you need to do is display the Forms toolbar. To do this, under the View menu, select Toolbars > Forms.

The Forms toolbar should now appear. Select the combo box icon. Then left-click on the spreadsheet where you'd like the combo box object to appear and drag the mouse pointer to the right until the combo box is the desired size.

Next, you will need to enter somewhere on your spreadsheet, the values that you'd like to appear as selections in the combo box. We've entered our values in cells A2 through A4. Next, right-click on the combo box and select Format Control from the popup menu.

When the Format Object window appears, select the Control tab. Then select the input range for the combo box. This is the cells that contain the values that you wish to see in the combo box. Then select the Cell link. This the cell that is linked to the combo box. This cell will display the combo box selection. Click on the OK button.

Now when you return to the spreadsheet, your combo box should display a selection of values. In our example, it displays Active, Inactive, and Unknown.

When you select a value, the linked cell should display the index of the selection. In this case, we selected "Inactive", so cell C5 displays a 2. The value of 2 represents the 2nd value in the combo box.

If you need to translate C5 back to the combo box selection, you can use the following formula: (but do not place this formula in cell C5, place it in a cell that you are currently not using) =INDEX(A2:A4, C5) The INDEX formula would return the value "Inactive".

ae Riba, seguinte... vi o que voc quer e montei uma formula para voc... s que a formula s aceita no mximo 7 SE, ou seja, 7 produtos. Se for mais que isso, melhor usar outro metodo... nesse caso, no poderei mais te ajudar... rsrs bom, pro Combobox, faz o seguinte: cria, em uma parte da planilha que no vai ser impressa uma lista com os produtos. tipo: em H1 Produto1, H2 produto2... H5 produto5. depois, voc vai na celula onde o Combobox vai ser feito. Ex: A1. Clica no Menu Dados - Validao - em configuraes, escolha Lista em permitir, e em origem voc vai inserir os campos que voc digitou os produtos... no meu exemplo seria H1:H5 (Clicando no quadrado ao lado, voc pode selecionar direto na planilha); depois s dar Ok.

bom, digamos que voc tenha feito o combo na celula A1. Na celula que voc quer que aparea o valor do produto, digite o seguinte: =SE(A1="Produto1";1;SE(A1="Produto2";2;SE(A1="Produto3";3;SE(A1="Produto4";4;SE(A1="P roduto5";5;SE(A1="Produto6";6)))))) repare que ao lado do produto, tem um nmero (1 a 6) que vai ser o valor do produto em questao.

espero ter ajudado.

um abrao

Tem sim, inclusive existe uma funo para fazer isso muito simplesmente usando a funo AutoFilter, um ex: Sub a() Range("A:A").AutoFilter 1, "D" End Sub vai filtrar na coluna A apenas os valores "D".

Vamos supor que sua lista esteja na coluna A e na Plan1 e que possui um cabecalho.

V at Inserir --> Nome --> Definir. Ao abrir a caixa, digite a seguinte frmula e d o nome de minhaLista: =DESLOC(Plan1!$A$2;0;0;CONT.VALORES(Plan1!$A : $A)-1;1)

Depois, v at Dados --> Validacao --> Lista e digitie:

=minhaLista

O seu resultado ser:

Fev

10

Como inserir formulrios no Excel 2007 (ou como exibir a guia Desenvolvedor)
por Joo Henrique

De vez em quando aparece algum por aqui perguntando como inserir formulrios no Excel 2007. Na verdade, praticamente a mesma coisa que no Excel 2003, s que preciso fazer uma configurao prvia. Os botes relacionados a formulrios, no Excel 2007, ficam na guia Desenvolvedor. O problema que essa guia, por padro, no exibida. Para que ela aparecea, siga esses passos: 1) Pressione o boto do Microsof Office 2) Pressione o boto "Opes do Excel" 3) Na janela que aparece, marque a opo "Mostrar guia Desenvolvedor na Faixa de Opes" 4) Aperte OK Pronto, agora voc pode acessar a guia Desenvolvedor na Faixa de Opes, e inserir seus formulrios normalmente.

You might also like