Excel Copy Rows Based On Boolean?
Closed
ViralSynergy
Posts
2
Registration date
Tuesday March 27, 2012
Status
Member
Last seen
March 28, 2012
-
Mar 27, 2012 at 11:34 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Mar 28, 2012 at 08:42 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Mar 28, 2012 at 08:42 PM
Related:
- Excel Copy Rows Based On Boolean?
- Excel marksheet - Guide
- Number to words in excel - Guide
- Excel apk for pc - Download - Spreadsheets
- Kernel for excel - Download - Backup and recovery
- Excel date format dd.mm.yyyy - Guide
3 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Mar 28, 2012 at 07:19 AM
Mar 28, 2012 at 07:19 AM
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 March 27, 2012
Status
Member
Last seen
March 28, 2012
Mar 28, 2012 at 11:29 AM
Mar 28, 2012 at 11:29 AM
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 June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Mar 28, 2012 at 08:42 PM
Mar 28, 2012 at 08:42 PM
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.