concreteinterface
Board Regular
- Joined
- Jul 10, 2008
- Messages
- 144
I didn't really know how to title this but here is the code I'm piecing together.
I want to move 5 columns to the left of xfrLastCell and grab a value. As you can probably tell by the title, I'm kind of a a loss for how to research this problem. Thanks for the help.
Code:
Option Explicit
Public xfrLastCell As String
Public xfrActiveCell As String
Public PMLogNum As String
Public JobNumber As String
Private Sub Worksheet_Change(ByVal Target As Range)
If xfrActiveCell = "" Then xfrActiveCell = ActiveCell.Address
xfrLastCell = xfrActiveCell
xfrActiveCell = ActiveCell.Address
If Intersect(Target, Me.Range("Q:Q")) Is Nothing Then GoTo ExitThis
PMLogNum = Sheets("PM Log").Range("Z1") + 1
Sheets("PM Log").Range("C" & PMLogNum) = Format(Time, "hh:mm")
Sheets("PM Log").Range("D" & PMLogNum) = JobNumber
Sheets("PM Log").Range("E" & PMLogNum) = Sheets("Work Order Log").Range(xfrLastCell).Value
Sheets("PM Log").Range("B" & PMLogNum) = Format(Date, "mm-dd-yy")
ExitThis:
End Sub
I want to move 5 columns to the left of xfrLastCell and grab a value. As you can probably tell by the title, I'm kind of a a loss for how to research this problem. Thanks for the help.