Copying data from one sheet to another conditionally
Solved/Closed
sorceres13
Posts
2
Registration date
Tuesday March 4, 2014
Status
Member
Last seen
March 5, 2014
-
Mar 4, 2014 at 02:04 PM
sorceres13 Posts 2 Registration date Tuesday March 4, 2014 Status Member Last seen March 5, 2014 - Mar 5, 2014 at 10:41 AM
sorceres13 Posts 2 Registration date Tuesday March 4, 2014 Status Member Last seen March 5, 2014 - Mar 5, 2014 at 10:41 AM
Related:
- Copying data from one sheet to another conditionally
- Transfer data from one excel worksheet to another automatically - Guide
- Google sheet right to left - Guide
- Windows network commands cheat sheet - Guide
- Tmobile data check - Guide
- Protect pdf from copying - Guide
2 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Mar 4, 2014 at 11:07 PM
Mar 4, 2014 at 11:07 PM
PT is column A
data in sheet is from A1
no blank rows or columns
try this macro
data in sheet is from A1
no blank rows or columns
try this macro
Sub test()
Dim r As Range, filt As Range
Application.ScreenUpdating = False
With Worksheets("sheet1")
Set r = .Range("a1").CurrentRegion
r.AutoFilter field:=1, Criteria1:="PT"
r.SpecialCells(xlCellTypeVisible).Copy
With Worksheets("sheet2")
.Range("A1").PasteSpecial
End With
.AutoFilterMode = False
End With
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
sorceres13
Posts
2
Registration date
Tuesday March 4, 2014
Status
Member
Last seen
March 5, 2014
1
Mar 5, 2014 at 10:41 AM
Mar 5, 2014 at 10:41 AM
Thank you soo much that works beautifully. I appreciate the help