Excel Copy Rows Based On Boolean?
Closed
ViralSynergy
Posts
2
Registration date
Tuesday 27 March 2012
Status
Member
Last seen
28 March 2012
-
27 Mar 2012 à 11:34
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 28 Mar 2012 à 20:42
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 28 Mar 2012 à 20:42
Related:
- Excel Copy Rows Based On Boolean?
- Excel mod apk for pc - Download - Spreadsheets
- How to copy data from one excel sheet to another - Guide
- Excel conditional formatting based on date - Guide
- Vat calculation excel - Guide
- Kernel for excel repair - Download - Backup and recovery
3 responses
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
28 Mar 2012 à 07:19
28 Mar 2012 à 07:19
keep a copy of the file saved somewhere for retrieval if there is some problem
try this macro
try this macro
Sub test()
Dim r As Range, filt As Range
With Worksheets("sheetB")
.Range("B18:I32").Cells.Clear
End With
With Worksheets("sheetA")
Set r = .Range("A1").CurrentRegion
r.Sort key1:=Range("a1"), order1:=xlDescending, header:=xlYes
r.AutoFilter field:=1, Criteria1:="TRUE"
Set filt = r.Offset(1, 0).Resize(r.Rows.Count - 1).SpecialCells(xlCellTypeVisible)
filt.Areas(1).Columns("c:J").Copy
With Worksheets("sheetB")
.Range("B18").PasteSpecial
End With
.AutoFilterMode = False
End With
Application.CutCopyMode = False
End Sub
ViralSynergy
Posts
2
Registration date
Tuesday 27 March 2012
Status
Member
Last seen
28 March 2012
28 Mar 2012 à 11:29
28 Mar 2012 à 11:29
That works great, Thank you. What would I have to add or change to run the macro from Sheet "B"?
Is there any way to not resort the data on Sheet "A" as well?
Again, Thanks.
VS
Is there any way to not resort the data on Sheet "A" as well?
Again, Thanks.
VS
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
28 Mar 2012 à 20:42
28 Mar 2012 à 20:42
not clear. you park this macro in a module of vb editor and whlichever sheet is active this will run because no sheet is activated.