0% found this document useful (0 votes)
24 views

Excel para Borrar de Una Celda Con Condiciones

This document discusses Excel macros and their uses. It provides examples of macros that can format cells, copy and paste ranges, insert and delete rows and columns, and sort data. It also describes how to create a user form with text boxes to input data that will populate cells when changed.

Uploaded by

marlexir
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Excel para Borrar de Una Celda Con Condiciones

This document discusses Excel macros and their uses. It provides examples of macros that can format cells, copy and paste ranges, insert and delete rows and columns, and sort data. It also describes how to create a user form with text boxes to input data that will populate cells when changed.

Uploaded by

marlexir
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

EXCEL Para borrar de una celda con condiciones.

- (marco) nombre de la carpeta. - (Pineda) nombre del Excel - (XLS) smbolo del Excel. para activacin o aplicaciones directo de macro es ctrl. + F11. Algunos procesos de macro:
Sub codogo() Range("A1").Select ActiveCell.Formula = "leonel" Selection.Font.Bold = True Selection.Font.Italic = True Selection.Font.Underline = True Selection.HorizontalAlignment = xlCenter Selection.Font.Name = "MONOTYPE CURSIVA" Selection.Font.Size = 12 Selection.Copy Range("A2").Select ActiveSheet.Paste Selection.Cut Range("A10").Select ActiveSheet.Paste Range("A1").Select Selection.EntireRow.Insert ActiveCell.Formula = "leonel" Range("B1").Select Selection.EntireRow.Insert ActiveCell.Formula = "ramon" Range("C1").Select Selection.EntireRow.Insert ActiveCell.Formula = "chavo" Selection.EntireRow.Delete Range("A1").Select ActiveCell.Formula = "leonel" Range("A2").Select ActiveCell.Formula = "ramon" Range("A3").Select codigo rango actvar celda negrita cursiva subrayado centrar tipo de letra tamao copiar rango pegar cortar rango pegar rango insertar en fila actvar celda rango insertar en fila actvar celda rango insertar en fila actvar celda eliminar fila rango actvar celda rango actvar celda rango

actvar celda rango incertar Selection.EntireColumn.Insert columna eliminar Selection.EntireColumn.Delete columna Selection.Sort key1:=Range("A1"), order1:=xlAscending, header:=guess, ordercustom:=1, MatchCase:=False, Orientation:=xlTopToBottom

ActiveCell.Formula = "chavo" Range("E1").Select

para introducir elementos mediante un formulario ingresas al macro / men insertar / userform

Private Sub CommandButton1_Click() Selection.EntireRow.Insert TextBox1 = Emtry TextBox2 = Emtry TextBox3 = Emtry TextBox1 = SetFocus End Sub Private Sub TextBox1_Change() Range("A1").Select ActiveCell.FormulaR1C1 = TextBox1 End Sub Private Sub TextBox2_Change() Range("B1").Select ActiveCell.FormulaR1C1 = TextBox2 End Sub Private Sub TextBox3_Change() Range("C1").Select ActiveCell.FormulaR1C1 = TextBox3 End Sub

You might also like