Cantrecallmyusername
Board Regular
- Joined
- May 24, 2021
- Messages
- 50
- Office Version
- 365
- Platform
- Windows
Hi,
I have a process which I have been able to update with some help on this forum where data is added from a report to a master sheet. It will dynamically check to see if there are any new names and depending on the number will add the number of rows required above a certain text value. I then past in these names in the newly created rows;
The sheet which the updates are required is the Details tab
This creates the rows needed;
This adds the data in the rows created above;
I know require a further step to the above - I need to find the last row in column B and drag the formulas from B (last cell in the column) - JN(last cell in the column)
The number of rows that will need to be dragged down will be ""Workings").Range("E2").Value"
What would be the best way to approach this? The number of rows that the formulas will need to go down will vary and there is a blank line always where the data will stop (not sure that helps)
Thanks in advance.
I have a process which I have been able to update with some help on this forum where data is added from a report to a master sheet. It will dynamically check to see if there are any new names and depending on the number will add the number of rows required above a certain text value. I then past in these names in the newly created rows;
The sheet which the updates are required is the Details tab
This creates the rows needed;
VBA Code:
Sub Add_Row_4Resources()
'Adds a number of rows to the Details tab based on the names found on the Actuals report for new additions
With Worksheets("Detail")
For j = 1 To Worksheets("Workings").Range("E2").Value
.Rows(Application.Match("Uplift", .Range("A:A"), 0)).EntireRow.Insert
Next
End With
End Sub
This adds the data in the rows created above;
VBA Code:
Sub Add_Resource_Name()
Sheets("Workings").Select
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$F$500").AutoFilter Field:=2, Criteria1:=RGB(255, _
199, 206), Operator:=xlFilterCellColor
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Detail").Select
Range("A6").Select
If ActiveCell.Offset(1, 0).Value = "" Then
ActiveCell.Offset(1, 1).Select
Else
ActiveCell.End(xlDown).Offset(1, 0).Select
End If
ActiveSheet.Paste
End Sub
I know require a further step to the above - I need to find the last row in column B and drag the formulas from B (last cell in the column) - JN(last cell in the column)
The number of rows that will need to be dragged down will be ""Workings").Range("E2").Value"
What would be the best way to approach this? The number of rows that the formulas will need to go down will vary and there is a blank line always where the data will stop (not sure that helps)
Thanks in advance.