Copy data from 1 excel sheet to another by cl

Closed
puneet - Nov 28, 2011 at 10:40 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Nov 30, 2011 at 04:47 PM
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 January 28, 2010 Status Contributor Last seen May 5, 2022 766
Nov 30, 2011 at 04:47 PM
Worked for me. Do you get any error ?
0