Oharra
Orrialde honetara sartzeak baimena behar du. Saioa hasteko edo direktorioak aldatzen saia zaitezke.
Orrialde honetara sartzeak baimena behar du. Direktorioak aldatzen saia zaitezke.
Las siguientes constantes pueden usarse en cualquier parte del código en lugar de los valores reales:
| Constante | Valor | Descripción |
|---|---|---|
| vbKeyLButton | 0x1 | Botón izquierdo del mouse |
| vbKeyRButton | 0x2 | Botón derecho del mouse |
| vbKeyCancel | 0x3 | Tecla CANCELAR |
| vbKeyMButton | 0x4 | Botón central del mouse |
| vbKeyBack | 0x8 | Tecla RETROCESO |
| vbKeyTab | 0x9 | Tecla TAB |
| vbKeyClear | 0xC | Tecla BORRAR |
| vbKeyReturn | 0xD | Tecla ENTRAR |
| vbKeyShift | 0x10 | Tecla MAYÚS |
| vbKeyControl | 0x11 | Tecla CTRL |
| vbKeyMenu | 0x12 | Tecla MENÚ |
| vbKeyPause | 0x13 | Tecla PAUSA |
| vbKeyCapital | 0x14 | Tecla BLOQ MAYÚS |
| vbKeyEscape | 0x1B | Tecla ESC |
| vbKeySpace | 0x20 | Tecla BARRA ESPACIADORA |
| vbKeyPageUp | 0x21 | Tecla RE PÁG |
| vbKeyPageDown | 0x22 | Tecla AV PÁG |
| vbKeyEnd | 0x23 | Tecla FIN |
| vbKeyHome | 0x24 | Tecla INICIO |
| vbKeyLeft | 0x25 | Tecla FLECHA IZQUIERDA |
| vbKeyUp | 0x26 | Tecla FLECHA ARRIBA |
| vbKeyRight | 0x27 | Tecla FLECHA DERECHA |
| vbKeyDown | 0x28 | Tecla FLECHA ABAJO |
| vbKeySelect | 0x29 | Tecla SELECCIONAR |
| vbKeyPrint | 0x2A | TECLA IMPR PANT |
| vbKeyExecute | 0x2B | Tecla EJECUTAR |
| vbKeySnapshot | 0x2C | Tecla IMPR PANT |
| vbKeyInsert | 0x2D | Tecla INSERT |
| vbKeyDelete | 0x2E | Tecla SUPR |
| vbKeyHelp | 0x2F | Tecla AYUDA |
| vbKeyNumlock | 0x90 | Tecla BLOQ NÚM |
Una clave: tecla Z
La clave A a través de la clave Z es la misma que los equivalentes ASCII A–Z.
| Constante | Valor | Descripción |
|---|---|---|
| vbKeyA | 65 | Tecla A |
| vbKeyB | 66 | Tecla B |
| vbKeyC | 67 | Tecla C |
| vbKeyD | 68 | Tecla D |
| vbKeyE | 69 | Tecla E |
| vbKeyF | 70 | Tecla F |
| vbKeyG | 71 | Tecla G |
| vbKeyH | 72 | Tecla H |
| vbKeyI | 73 | Tecla I |
| vbKeyJ | 74 | Tecla J |
| vbKeyK | 75 | Tecla K |
| vbKeyL | 76 | Tecla L |
| vbKeyM | 77 | Tecla M |
| vbKeyN | 78 | Tecla N |
| vbKeyO | 79 | Tecla O |
| vbKeyP | 80 | Tecla P |
| vbKeyQ | 81 | Tecla Q |
| vbKeyR | 82 | Tecla R |
| vbKeyS | 83 | Tecla S |
| vbKeyT | 84 | Tecla T |
| vbKeyU | 85 | Tecla U |
| vbKeyV | 86 | Tecla V |
| vbKeyW | 87 | Tecla W |
| vbKeyX | 88 | Tecla X |
| vbKeyY | 89 | Tecla Y |
| vbKeyZ | 90 | Tecla Z |
0 tecla : 9 tecla
La clave de 0 a 9 es la misma que sus equivalentes ASCII de 0 a 9.
| Constante | Valor | Descripción |
|---|---|---|
| vbKey0 | 48 | Tecla 0 |
| vbKey1 | 49 | Tecla 1 |
| vbKey2 | 50 | Tecla 2 |
| vbKey3 | 51 | Tecla 3 |
| vbKey4 | 52 | Tecla 4 |
| vbKey5 | 53 | Tecla 5 |
| vbKey6 | 54 | Tecla 6 |
| vbKey7 | 55 | Tecla 7 |
| vbKey8 | 56 | Tecla 8 |
| vbKey9 | 57 | Tecla 9 |
Teclas numéricas del teclado
Las constantes siguientes representan claves en el teclado numérico.
| Constante | Valor | Descripción |
|---|---|---|
| vbKeyNumpad0 | 0x60 | Tecla 0 |
| vbKeyNumpad1 | 0x61 | Tecla 1 |
| vbKeyNumpad2 | 0x62 | Tecla 2 |
| vbKeyNumpad3 | 0x63 | Tecla 3 |
| vbKeyNumpad4 | 0x64 | Tecla 4 |
| vbKeyNumpad5 | 0x65 | Tecla 5 |
| vbKeyNumpad6 | 0x66 | Tecla 6 |
| vbKeyNumpad7 | 0x67 | Tecla 7 |
| vbKeyNumpad8 | 0x68 | Tecla 8 |
| vbKeyNumpad9 | 0x69 | Tecla 9 |
| vbKeyMultiply | 0x6A | Tecla SIGNO DE MULTIPLICACIÓN (*) |
| vbKeyAdd | 0x6B | Tecla SIGNO MÁS (+) |
| vbKeySeparator | 0x6C | Tecla ENTRAR |
| vbKeySubtract | 0x6D | Tecla SIGNO MENOS (-) |
| vbKeyDecimal | 0x6E | Tecla PUNTO DECIMAL (.) |
| vbKeyDivide | 0x6F | Tecla SIGNO DE DIVISIÓN (/) |
Claves de función
Las constantes siguientes representan claves de función.
| Constante | Valor | Descripción |
|---|---|---|
| vbKeyF1 | 0x70 | Tecla F1 |
| vbKeyF2 | 0x71 | Tecla F2 |
| vbKeyF3 | 0x72 | Tecla F3 |
| vbKeyF4 | 0x73 | Tecla F4 |
| vbKeyF5 | 0x74 | Tecla F5 |
| vbKeyF6 | 0x75 | Tecla F6 |
| vbKeyF7 | 0x76 | Tecla F7 |
| vbKeyF8 | 0x77 | Tecla F8 |
| vbKeyF9 | 0x78 | Tecla F9 |
| vbKeyF10 | 0x79 | Tecla F10 |
| vbKeyF11 | 0x7A | Tecla F11 |
| vbKeyF12 | 0x7B | Tecla F12 |
| vbKeyF13 | 0x7C | Tecla F13 |
| vbKeyF14 | 0x7D | Tecla F14 |
| vbKeyF15 | 0x7E | Tecla F15 |
| vbKeyF16 | 0x7F | Tecla F16 |
Vea también
Soporte técnico y comentarios
¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.