How to add rows that meet specific conditions
Solved/Closed
SalinaSJames
Posts
1
Registration date
Sunday 16 January 2022
Status
Member
Last seen
27 January 2022
-
27 Jan 2022 à 23:31
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Moderator Last seen 6 September 2024 - 28 Jan 2022 à 04:15
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Moderator Last seen 6 September 2024 - 28 Jan 2022 à 04:15
Related:
- How to add rows that meet specific conditions
- How do i find a specific video on youtube - Guide
- How to find specific words on a page - Guide
- 2007 microsoft office add-in microsoft save as pdf or xps - Download - Other
- Google meet download for pc - Download - Video calls
- How to add someone on messenger - Guide
1 response
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Moderator
Last seen
6 September 2024
262
28 Jan 2022 à 04:15
28 Jan 2022 à 04:15
Hello Salina,
It would be best if you uploaded a sample workbook to a file sharing site such as WeTransfer or Drop Box then post the link to your file back here.
This will enable us to see exactly what you are trying to do otherwise we can only guess. It will allow us to test as well on a 'live' workbook.
Make sure that the sample workbook is an exact replica of your actual workbook and if your data is sensitive then please use dummy data.
As an insight as to how you may be able to do it, I've attached a sample file at the following link:-
https://wetransfer.com/downloads/b59d1477187c676fed32edca464dfd4b20220128090442/025dd8
The VBA code, which is in the Summary sheet module, is as follows:-
To access the code, right click on the Summary sheet tab and select "View Code" in the menu that appears. You'll see the code in the big white code field.
In the sample file, you'll see a Raw Data sheet and a Summary sheet. In cell A1 of the Summary sheet, you'll find a data validation drop down list with some job numbers from the Raw Data sheet listed. Select any job number and the relevant data from the Raw Data sheet will be instantly displayed in the Summary sheet.
I hope that this at least heads you in the right direction.
Cheerio,
vcoolio.
It would be best if you uploaded a sample workbook to a file sharing site such as WeTransfer or Drop Box then post the link to your file back here.
This will enable us to see exactly what you are trying to do otherwise we can only guess. It will allow us to test as well on a 'live' workbook.
Make sure that the sample workbook is an exact replica of your actual workbook and if your data is sensitive then please use dummy data.
As an insight as to how you may be able to do it, I've attached a sample file at the following link:-
https://wetransfer.com/downloads/b59d1477187c676fed32edca464dfd4b20220128090442/025dd8
The VBA code, which is in the Summary sheet module, is as follows:-
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
If Target.Count > 1 Then Exit Sub
If Target.Value = vbNullString Then Exit Sub
Application.ScreenUpdating = False
Application.EnableEvents = False
With Sheets("Raw Data").[A1].CurrentRegion
.AutoFilter 1, Target
.Offset(1).EntireRow.Copy Me.Range("A" & Rows.Count).End(3)(2)
.AutoFilter
End With
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
To access the code, right click on the Summary sheet tab and select "View Code" in the menu that appears. You'll see the code in the big white code field.
In the sample file, you'll see a Raw Data sheet and a Summary sheet. In cell A1 of the Summary sheet, you'll find a data validation drop down list with some job numbers from the Raw Data sheet listed. Select any job number and the relevant data from the Raw Data sheet will be instantly displayed in the Summary sheet.
I hope that this at least heads you in the right direction.
Cheerio,
vcoolio.