Professional Documents
Culture Documents
Codigo Macro A
Codigo Macro A
Codigo Macro A
Dim b1 As String
Dim b2 As Variant
Dim b11 As String
Dim b111 As String
End Sub
'''''''''''''''''''''
'''''''''''''''''''''
'''''''''''''''''''''
'''''''''''''''''''''
'''''''''''''''''''''
'''''''''''''''''''''
Sub num_CH()
Dim a As Range
Dim b As Range
Dim c As Range
Dim d As Integer
Dim e As Range
Dim i As Integer
Dim aa As Range
Dim bb As Range
Dim cc As Range
Dim dd As Range
Dim ee As Range
Dim ff As Range
Dim gg As Range
Dim hh As Range
Dim dhd As Range
Set a = Range("A7")
Set b = Range("B2")
a.Select
ActiveCell.Offset(0, b - 1).Activate
respuesta = ActiveCell.Column
Set c = Selection
c.Select
Selection.End(xlToRight).Select
respuesta2 = ActiveCell.Column
d = respuesta2 - respuesta
c.Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Set aa = Selection
Selection.End(xlDown).Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Set bb = Selection
Selection.End(xlDown).Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Set cc = Selection
Selection.End(xlDown).Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Set dd = Selection
Selection.End(xlDown).Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Set ee = Selection
Selection.End(xlDown).Select
Selection.End(xlDown).Select
Set ff = Selection
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Set hh = Selection
c.Select
c.Offset(0, -1).Select
ActiveCell.EntireColumn.Select
Range(Selection, Selection.End(xlToLeft)).Select
numRows = Selection.Rows.Count
numColumns = Selection.Columns.Count
Selection.Offset(0, 6).Select
Selection.Resize(numRows + 0, numColumns - 6).Select
Selection.Columns.Delete Shift:=xlToLeft
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
'2da parte de macro: Generar archivo xlsx a partir de archivo original xlsxm
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim b1 As String
Dim b2 As Variant
Dim b11 As String
Dim b111 As String
End Sub