Hey all,
I have an issue where i need to use a VBA code on a button that when clicked it copies the cell next to it and pastes it on another page in the 1st available blank cell. and when i put in another value in that same cell and click the button it would put that value in the next available blank cell (under the 1st one) and so on and so on.
What I have so far is
Sub Copy2Prod()
'
' Copy2Prod Macro
'
'
If Sheets("Production").Cells(A4) = "" Then
Sheets("CORR Quality Comments Template").Select
Range("C4").Select
Selection.Copy
Sheets("Production").Select
Range("A4").Select
ActiveSheet.Paste
Else
Sheets("CORR Quality Comments Template").Select
Range("C4").Select
Selection.Copy
Sheets("Production").Select
Range("A4:A60").Offset(1, 0).Select
ActiveSheet.Paste
End If
End Sub
Excel 2010 is what I have, can anyone assist?
I have an issue where i need to use a VBA code on a button that when clicked it copies the cell next to it and pastes it on another page in the 1st available blank cell. and when i put in another value in that same cell and click the button it would put that value in the next available blank cell (under the 1st one) and so on and so on.
What I have so far is
Sub Copy2Prod()
'
' Copy2Prod Macro
'
'
If Sheets("Production").Cells(A4) = "" Then
Sheets("CORR Quality Comments Template").Select
Range("C4").Select
Selection.Copy
Sheets("Production").Select
Range("A4").Select
ActiveSheet.Paste
Else
Sheets("CORR Quality Comments Template").Select
Range("C4").Select
Selection.Copy
Sheets("Production").Select
Range("A4:A60").Offset(1, 0).Select
ActiveSheet.Paste
End If
End Sub
Excel 2010 is what I have, can anyone assist?