You are on page 1of 2

Dim x As Integer

Dim Number As Integer


Number = 1
Dim estampa As Double

' Set numrows = number of rows of data.


NumRows = Range("I2", Range("I2").End(xlDown)).Rows.Count
' Select cell a1.
Range("I2").Select
' Establish "For" loop to loop "numrows" number of times.
For x = 1 To NumRows
' Insert your code here.
' Selects cell down 1 row from active cell.
ActiveCell.Offset(1, 0).Select

'CONDICIONAL SWITCH'
dato = Cells(x + 1, 9) 'COLUMNA - FILA
Select Case dato ' Evaluate Number.
Case 1
Range("H7:K7").Copy Destination:=Range("P1")

'MsgBox "Temperatura"

'COPIAR Y PEGAR CELDAS


' Sub Copiarypegar()

'Range("H3:K10").Copy Destination:=Range("P3")

'End Sub

'Sub PegadoEspecial()

'Todo
'Range("H3:K10").Copy Destination:=Range("U")

''Fórmulas
'Range("D2:D21").Copy: Range("G2").PasteSpecial xlPasteFormulas
'Valores
'Range("D2:D21").Copy: Range("H2").PasteSpecial xlPasteValues
'Formatos
'Range("D2:D21").Copy: Range("I2").PasteSpecial xlPasteFormats
'Comentarios
'Range("D2:D21").Copy: Range("J2").PasteSpecial xlPasteComments
'Validación
'Range("D2:D21").Copy: Range("K2").PasteSpecial xlPasteValidation

'Application.CutCopyMode = False

'End Sub

'************************************************************
' Case 2
' Case 3
Case Else ' Other values.
Debug.Print "Not between 1 and 10"
End Select
'**************************************************************
Next

You might also like