Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

REF: MACRO AVANZADA !!!

0 views
Skip to first unread message

César Aguilar Ramírez

unread,
Feb 8, 2003, 8:44:44 AM2/8/03
to
Hola amigos,

Tengo la necesidad de buscar determinados registros de un libro A, que esten
en un Libro B. ¿Como lo hago?. Se me ocurrio algo así. Pero no me
funciona, tomando dos hojas en el mismo libro.

Sheets("Hoja1").Select
For i = 1 To 300
Range("a" & i).Select
auxiliar = ActiveCell.FormulaR1C1
Sheets("Hoja2").Select
For j = 1 To 300
Range("a" & j).Select
If ActiveCell.FormulaR1C1 = "" Then
Else
If ActiveCell.FormulaR1C1 = auxiliar Then
MsgBox auxiliar
End If
End If
Next j
Sheets("Hoja1").Select
Next i

Por favor, si alguien me ayuda...

Saludos,
César.


javier

unread,
Feb 8, 2003, 8:58:45 AM2/8/03
to

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Si lo que buscas está en OTRO LIBRO tendrás que activarlo antes.
Windows("Libro2").Activate

javier.

"César Aguilar Ramírez" <cesar....@vecchiola.cl> escribió en el mensaje
news:OVW1xf3zCHA.2816@TK2MSFTNGP09...

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPkUNDn13wdPaKuuQEQIPqwCdHZ0uA1FGMW/0uZKaKHt0ZWrpRF4AoJbx
LLEYA2JC/7Lo0mlONQE9gUVd
=hhIe
-----END PGP SIGNATURE-----


0 new messages