USFengBULLS
Board Regular
- Joined
- May 7, 2018
- Messages
- 66
- Office Version
- 365
- Platform
- Windows
Hello All;
I have a log that users will be adjusting data based off statuses of Drawings. Starting at A11, B11 & C11: Column A is DRW NO., Column B is DRW Description and Column C is Location/Rm.
Over in Column L is the status column where the user will select from drop down list. I have this code working for when that status changes to call certain Macros
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("L:L")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
Select Case Target.Value
Case "APPROVED - FV Req.": Call APPROVED(Target.Row)
Case "APPROVED - NO FV Req.": Call APPROVED(Target.Row)
Case "REVISED/AND RESUBMIT": Call REVISED(Target.Row)
End Select
End If
End Sub
I have this macro for the REVISED part but is not copying the contents in column A, B & C and placing it in the next blank row on the sheet. Anyone know why?
Public Sub REVISED(tRow As Double)
Dim erow As Double
erow = Sheets("DRAWING SCHEDULE").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).Row
Range(Cells(tRow, 1), Cells(tRow, 3)).Copy Sheets("DRAWING SCHDULE").Cells(erow, 1)
End Sub
Also, I need this same macro to rename the contents in C that was copied down with just REV 1 or REV 2 based on how many times this location has been revised.
For instance if LEVEL 1/ AREA A/ RM 126 gets changed to the status of Revised/And Resubmit it will get copied down to the next blank cell (along with the contents of column A and B next to it)Then, Get REV 1 at the end like this LEVEL 1/ AREA A/ RM 126 REV 1. If the that one now has to get revised again it copies it down to the next blank row and gets named LEVEL 1/ AREA A/ RM 126 REV 2 because there is one already before it. I do not know how to have VBA look in that C column to find if there are any that exist before and just REV + 1 and rename it. Any help with this would be greatly appreciated, Thanks.
I have a log that users will be adjusting data based off statuses of Drawings. Starting at A11, B11 & C11: Column A is DRW NO., Column B is DRW Description and Column C is Location/Rm.
Over in Column L is the status column where the user will select from drop down list. I have this code working for when that status changes to call certain Macros
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("L:L")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
Select Case Target.Value
Case "APPROVED - FV Req.": Call APPROVED(Target.Row)
Case "APPROVED - NO FV Req.": Call APPROVED(Target.Row)
Case "REVISED/AND RESUBMIT": Call REVISED(Target.Row)
End Select
End If
End Sub
I have this macro for the REVISED part but is not copying the contents in column A, B & C and placing it in the next blank row on the sheet. Anyone know why?
Public Sub REVISED(tRow As Double)
Dim erow As Double
erow = Sheets("DRAWING SCHEDULE").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).Row
Range(Cells(tRow, 1), Cells(tRow, 3)).Copy Sheets("DRAWING SCHDULE").Cells(erow, 1)
End Sub
Also, I need this same macro to rename the contents in C that was copied down with just REV 1 or REV 2 based on how many times this location has been revised.
For instance if LEVEL 1/ AREA A/ RM 126 gets changed to the status of Revised/And Resubmit it will get copied down to the next blank cell (along with the contents of column A and B next to it)Then, Get REV 1 at the end like this LEVEL 1/ AREA A/ RM 126 REV 1. If the that one now has to get revised again it copies it down to the next blank row and gets named LEVEL 1/ AREA A/ RM 126 REV 2 because there is one already before it. I do not know how to have VBA look in that C column to find if there are any that exist before and just REV + 1 and rename it. Any help with this would be greatly appreciated, Thanks.