Copy select columns from a row given a criteria was met
Closed
Voarkin
Posts
1
Registration date
Saturday 10 January 2015
Status
Member
Last seen
10 January 2015
-
10 Jan 2015 à 19:10
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 13 Jan 2015 à 00:36
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 13 Jan 2015 à 00:36
Related:
- Copy select columns from a row given a criteria was met
- Saints row 2 cheats - Guide
- How to delete a row in word - Guide
- Vba select case like - Guide
- Excel copy row if condition met ✓ - Excel Forum
- Please insert the correct dvd-rom select ok and restart application nfsmw - Drivers Forum
1 response
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Contributor
Last seen
6 September 2024
262
13 Jan 2015 à 00:36
13 Jan 2015 à 00:36
Hello Voarkin,
Perhaps the following code may help:-
You can have a look at my test work book here:-
https://www.dropbox.com/s/79nfe8xg4banv6d/Voarkin.xlsm?dl=0
to see if it works for you.
The code also deletes your daily log entries as I have assumed that you would not want your input sheet cluttered up with used data.
The blanks that I have left in the test work book are deliberate.
I hope it helps.
Kind regards,
vcoolio.
Perhaps the following code may help:-
Sub TransferIt()
Application.ScreenUpdating = False
Dim lRow As Long
Sheets("Daily Log").Select
lRow = Range("A" & Rows.Count).End(xlUp).Row
For Each Cell In Range("A2:A" & lRow)
If Cell = "ACD" Then
Range(Cells(Cell.Row, "C"), Cells(Cell.Row, "E")).Copy Sheets("ACD Call Log").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
ElseIf Cell = "Walk-in" Then
Range(Cells(Cell.Row, "C"), Cells(Cell.Row, "E")).Copy Sheets("In Store Log").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
ElseIf Cell = "Both" Then
Range(Cells(Cell.Row, "C"), Cells(Cell.Row, "E")).Copy Sheets("ACD Call Log").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
Range(Cells(Cell.Row, "C"), Cells(Cell.Row, "E")).Copy Sheets("In Store Log").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End If
Next Cell
Sheets("Daily Log").Range("A2:E" & Rows.Count).ClearContents
MsgBox "Data transfer completed!", vbExclamation
Application.ScreenUpdating = True
End Sub
You can have a look at my test work book here:-
https://www.dropbox.com/s/79nfe8xg4banv6d/Voarkin.xlsm?dl=0
to see if it works for you.
The code also deletes your daily log entries as I have assumed that you would not want your input sheet cluttered up with used data.
The blanks that I have left in the test work book are deliberate.
I hope it helps.
Kind regards,
vcoolio.