Tengo un viejo problema

04/06/2005 - 00:30 por Hermano2 | Informe spam
COmo va a todo.. bueno.. trate de cambiar una formula que me dio KL en macros
y no se porque no anda... se las dejo para a ver si alguien me puede ayudar...

Private Sub Worksheet_Change(ByVal Target As Range)
Dim Col As Variant, Dest As Variant
Dim Fila As Long, i As Integer

Application.ScreenUpdating = False
Col = Array("C", "D", "E", "F", "G", "H", _
"I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "AN")
Dest = Array("F7,F25,F44", "I7,I25,I44", "L7,L25,L44", _
"H6,H24,H43", "K9,K27", "M9,M27", "K10,K29", "M10,M28", _
"K11,K29", "M11,M29", "K12,K30", "M12,M30", "M15,M33",
"M13,M31", "M14,M32", _
"M17,M35,M45", "M16,M34")
For Fila = 13 To 42
With ThisWorkbook.Sheets(Fila - 16)
.Range("E3,E21,E40").Value = Me.Cells(47, "V").Value
.Range("E5,E23,E42").Value = Me.Cells(48, "V").Value
.Range("K10,K27").Value = Me.Cells(3, "R").Value
For i = LBound(Col) To UBound(Col)
.Range(Dest(i)).Value = Me.Cells(Fila, Col(i)).Value
Next i
End With
Next Fila
Application.ScreenUpdating = True
End Sub

Preguntas similare

Leer las respuestas

#6 KL
04/06/2005 - 02:10 | Informe spam
Hola Hermano2,

Siguiendo la logica del macro que te hice originalmente (la verdad es que ni
me acuerdo que es lo que hacia) prueba cambiar la linea:

With ThisWorkbook.Sheets(Fila - 16)

por

With ThisWorkbook.Sheets(Fila - 11)

Saludos,
KL

"Hermano2" wrote in message
news:
Miguel no se mucho de macros... y KL ninguna hoja tiene - ya no se que
hacer...
Respuesta Responder a este mensaje
#7 Hermano2
04/06/2005 - 02:43 | Informe spam
Se pasaron... no me anda bien... me anda super bien... son unos maestros...
y yo siempre el alumno medio mal aplicado... jajajaja muchisimas
gracias...
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una pregunta AnteriorRespuesta Tengo una respuesta
Search Busqueda sugerida