Copy data from 1 excel sheet to another by cl

Closed
puneet - 28 Nov 2011 à 22:40
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 30 Nov 2011 à 16:47
Hello,

i am trying to copy data from 1 excel sheet to another by clicking on button. my code is:

Sub Button4_Click()
Worksheets("ManHour").Range("B6:B10").Value = Worksheets("Master_MH").Range("B6:B10")
End Sub

but it's not working.

but when i trying to copy only single cell it's working.


Sub Button4_Click()
Worksheets("ManHour").Range("B6").Value = Worksheets("Master_MH").Range("B6")
End Sub

Please help me.
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
30 Nov 2011 à 16:47
Worked for me. Do you get any error ?