Hello, I am trying to redesign a workbook I have been using for a few months. I completed it with help from another individuals thread here but I am unable to twist the VBA to work in my favor.
I am essentially taking data from around 37 cells on a cheat sheet and my hope is to use a key press macro to copy the info to the second sheet or "tracker." Then have it clear the cells and prepare the cheat sheet for the next interval. The original macro I used populates each value to a column in a single row:
What I am hoping to do is essentially the same thing only I want to populate rows down a single column, and then have the next interval move to the next column. Instead of using rows.
I have tried to modify this macro, but I think I need to start from scratch. Any help is greatly appreciated.
I am essentially taking data from around 37 cells on a cheat sheet and my hope is to use a key press macro to copy the info to the second sheet or "tracker." Then have it clear the cells and prepare the cheat sheet for the next interval. The original macro I used populates each value to a column in a single row:
Code:
Sub MoveCoilDataTOP() Dim SrcSht As Worksheet
Dim DestSht As Worksheet
Dim lngDestLrow As Long
If MsgBox("Please confirm that you are moving and resetting intentionally?", vbYesNo + vbQuestion, "Move Data?") = vbNo Then Exit Sub
'Define Worksheets
Set SrcSht = Sheets("4.0 Coil")
Set DestSht = Sheets("Coil Tracker")
'Define Destination Sheet Lrow
lngDestLrow = DestSht.Cells(Columns.Count, "A").End(xlUp).Row
'Move Data
DestSht.Cells(lngDestLrow + 1, "A") = SrcSht.Range("B5")
DestSht.Cells(lngDestLrow + 1, "B") = SrcSht.Range("F5")
DestSht.Cells(lngDestLrow + 1, "C") = SrcSht.Range("F6")
DestSht.Cells(lngDestLrow + 1, "D") = SrcSht.Range("F2")
DestSht.Cells(lngDestLrow + 1, "E") = SrcSht.Range("F3")
DestSht.Cells(lngDestLrow + 1, "F") = SrcSht.Range("B24")
DestSht.Cells(lngDestLrow + 1, "G") = SrcSht.Range("D7")
DestSht.Cells(lngDestLrow + 1, "H") = SrcSht.Range("D6")
DestSht.Cells(lngDestLrow + 1, "I") = SrcSht.Range("D5")
DestSht.Cells(lngDestLrow + 1, "J") = SrcSht.Range("D4")
DestSht.Cells(lngDestLrow + 1, "K") = SrcSht.Range("D3")
DestSht.Cells(lngDestLrow + 1, "L") = SrcSht.Range("D2")
DestSht.Cells(lngDestLrow + 1, "M") = SrcSht.Range("B13")
DestSht.Cells(lngDestLrow + 1, "N") = SrcSht.Range("B14")
DestSht.Cells(lngDestLrow + 1, "O") = SrcSht.Range("B15")
DestSht.Cells(lngDestLrow + 1, "P") = SrcSht.Range("B16")
DestSht.Cells(lngDestLrow + 1, "Q") = SrcSht.Range("B17")
DestSht.Cells(lngDestLrow + 1, "R") = SrcSht.Range("B18")
DestSht.Cells(lngDestLrow + 1, "S") = SrcSht.Range("B3")
DestSht.Cells(lngDestLrow + 1, "T") = SrcSht.Range("B6")
DestSht.Cells(lngDestLrow + 1, "U") = SrcSht.Range("B7")
DestSht.Cells(lngDestLrow + 1, "V") = SrcSht.Range("B29")
DestSht.Cells(lngDestLrow + 1, "W") = SrcSht.Range("B9")
DestSht.Cells(lngDestLrow + 1, "X") = SrcSht.Range("B20")
DestSht.Cells(lngDestLrow + 1, "Y") = SrcSht.Range("F7")
What I am hoping to do is essentially the same thing only I want to populate rows down a single column, and then have the next interval move to the next column. Instead of using rows.
I have tried to modify this macro, but I think I need to start from scratch. Any help is greatly appreciated.