Definir Dim Entero Integer / long Real Single / double Caracter String / String * número (tamaño) Logico Boolean Leer Inputbox Si… entonces If … then Sino Else Y And O Or No Not Fin si Endif Escribir Msgbox Rc o raiz (raiz cuadrada) Sqr Seno (sen) Sin Coseno (cos) Cos Tangente (tan) Tan Trunc Int Redondear Round (ingresando cantidad de decimales) Segun variable_numerica Hacer Select Case a 1: Case 1 acciones_1 Acciones Case1 2: Case 2 acciones_2 Acciones Case2 3: Case 3 acciones_3 Acciones Case3 De Otro Modo: Case Else acciones_otromodo Acciones Case Else Fin Segun End Select
OTROS COMANDOS VISUAL EXCEL / VISUAL BASIC
COMANDO FUNCIÓN & Concatenar o unir CHR (13) Cambio de línea en un inputbox o Msgbox Cells (fila, columna) Solo números Ingresar información en la celda Goto número - número: Ir o volver a otra línea del programa Cells(1, 2).HorizontalAlignment = xlRight Alinear información en una celda (Derecha, Cells(1, 2).HorizontalAlignment = xlLeft Izquierda o Centro) Cells(1, 2).HorizontalAlignment = xlCenter Cells(2,2).Clearformats Eliminar formato de una celda Cells(1,2)=Format(Cells(1, 2), ">") Mayúscula texto de una celda Cells(2, 2).Font.Color = RGB(10, 100, 200) Formatos para celdas, texto y color Cells(2, 2).Font.Bold = True Cells(2, 2).Font.Italic = True Cells(3, 2).Interior.Color = RGB(50, 100, 55)