Ayuda con copia de Valor de celda

aperbo

New Member
Joined
Apr 25, 2013
Messages
3
Yo quiero hacer con macro lo siguiente, en la hoja 1 en la celda A1 =Hoja2!B1
Cuando modifique el valor de la celda B1 de la hoja se actualice la celda A1.
Hasta ahora solo se como copiar el valor, pero no se actualiza cuando cambia de valor.

Agradezco ayuda y colaboración
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
perdón se me olvido lo que tengo hasta ahora.

Selection.Copy
Sheets("Hoja1").Select
countult = Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste
 
Upvote 0
Perdón, no sé si lo entendí completamente. Pero si solamente quiere ejecutar el macro que ya ha hecho cuando actualiza la celda B1, pruebe este código. Se tiene que poner en la hoja, no en un "module".
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Application.Intersect(Target, Range("B1")) Is Nothing Then
        'este código solo ejecutara cuando ha cambiado la celda B1
       
    End If
End Sub
Y perdón por mi español. :)
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,567
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top