Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/02/2011, 11:48
carnero
 
Fecha de Ingreso: noviembre-2009
Mensajes: 315
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: Moverse entre libros

Cita:
Iniciado por mrocf Ver Mensaje
Entonces la variante sería:

Código vb:
Ver original
  1. Dim miLibro As Workbook
  2. Set miLibro = ActiveWorkbook ' Asigno el libro activo a la variable
  3.  
  4. [ejecuto el código]
  5.  
  6. miLibro.Activate ' Retorno al libro de origen
  7. Set miLibro = Nothing ' Desvinculo el objeto de la variable y libero recursos

Saludos, Cacho.

Y COMO OBTENGO LOS DATOS DE LAS CELDAS?

Cells(i, 6).Value = Cells(i, 1) <-- DE ESTA FORMA NO ES.

COMO LE DIGO

Cita:
DEL PRIMER LIBRO COPIE LA CELDA 1 EN EL 2LIBRO EN LA CELDA 1
Y ASI SUCESIBAMENTE CON LAS CELDAS QUE NECESITO


GRACIAS