Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
HI, good morning, I have the code below where I am trying to copy data from sheet1 to New, but its not working I am trying to copy C2 to last row in Sheet1 and paste into 'New' from B2 to last row and do the number format . please can you help?
Code:
Private Sub CommandButton3_Click()
Worksheets("Sheet1").Range("C2", Range("C2").End(xlDown)).Copy Worksheets("New").Range("B2")
Range("B2", Range("B2").End(xlDown)).NumberFormat = "0"
End Sub
Last edited: