Autocopy row based on whether the cell in a certain column is
Closed
crystal hill
-
Nov 30, 2015 at 09:02 AM
TrowaD
TrowaD
- Posts
- 2880
- Registration date
- Sunday September 12, 2010
- Status
- Moderator
- Last seen
- May 2, 2022
Related:
- Autocopy row based on whether the cell in a certain column is
- VBA: Delete empty rows based on value of cells ✓ - Forum - Excel
- Duplicate rows based on cell value vba ✓ - Forum - Excel
- Insert rows based on cell value - Forum - Excel
- Excel copy row based on cell value ✓ - Forum - Excel
- Copy rows based on a condition ✓ - Forum - Excel
2 replies
TrowaD
Nov 30, 2015 at 11:39 AM
- Posts
- 2880
- Registration date
- Sunday September 12, 2010
- Status
- Moderator
- Last seen
- May 2, 2022
Nov 30, 2015 at 11:39 AM
Hi Crystal,
Adjust the code below to match situation:
Code line 5: This is the sheet with all the data.
Code line 6: This is the column with possible blanks.
Code line 7: This is the destiantion sheet where the rows with blank are copied to.
Best regards,
Trowa
Adjust the code below to match situation:
Code line 5: This is the sheet with all the data.
Code line 6: This is the column with possible blanks.
Code line 7: This is the destiantion sheet where the rows with blank are copied to.
Sub RunMe() Dim Col_W_Blanks As Integer Dim MySheet As Worksheet Sheets("Sheet1").Select Col_W_Blanks = Columns("B").Column - 1 Set MySheet = Sheets("Sheet2") For Each cell In Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row) If cell.Offset(0, Col_W_Blanks) = vbNullString Then cell.EntireRow.Copy MySheet.Range("A" & Rows.Count).End(xlUp).Offset(1, 0) End If Next cell End Sub
Best regards,
Trowa
crystalhill
Nov 30, 2015 at 04:14 PM
- Posts
- 1
- Registration date
- Monday November 30, 2015
- Status
- Member
- Last seen
- November 30, 2015
Nov 30, 2015 at 04:14 PM
I sent back my workbook via email and what I am attempting is to copy/paste all the cell under each month into the month labeled tabs
TrowaD
Dec 1, 2015 at 11:08 AM
- Posts
- 2880
- Registration date
- Sunday September 12, 2010
- Status
- Moderator
- Last seen
- May 2, 2022
Dec 1, 2015 at 11:08 AM
You can upload your workbook to a free file sharing site like www.speedyshare.com or ge.tt and post back the download link. Always be careful with sensitive information.