Data filtering from one worksheet to another
Closed
JP
-
Jul 17, 2010 at 03:28 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Jul 18, 2010 at 08:01 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Jul 18, 2010 at 08:01 AM
Related:
- Data filtering from one worksheet to another
- Transfer data from one excel worksheet to another automatically - Guide
- How to automatically transfer data between sheets in Excel - Guide
- Tmobile data check - Guide
- Gta 5 data download for pc - Download - Action and adventure
- Display two columns in data validation list but return only one - Guide
1 response
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Jul 18, 2010 at 08:01 AM
Jul 18, 2010 at 08:01 AM
quote
named Order Form that is already formatted with a company logo and a place for a P.O.#unquote
this is not clear. I assumed that in the second sheet the columns A and B are to be left blank for entering company logp amd PO#
the main data in sheet 1 (sample data given below)
no blank rows.
item number type of coating stock level stock onhand qty to order ordered
1 a 20 2 18 18
2 s 20 4 16 x
3 d 20 20 0 0
4 f 20 5 15 x
5 g 20 8 12 12
CONVERT FORMULAS INTO VALUES
now try this macro on this sample sheet. result is on sheet 2
the macro is
if necessary modify the macro.
named Order Form that is already formatted with a company logo and a place for a P.O.#unquote
this is not clear. I assumed that in the second sheet the columns A and B are to be left blank for entering company logp amd PO#
the main data in sheet 1 (sample data given below)
no blank rows.
item number type of coating stock level stock onhand qty to order ordered
1 a 20 2 18 18
2 s 20 4 16 x
3 d 20 20 0 0
4 f 20 5 15 x
5 g 20 8 12 12
CONVERT FORMULAS INTO VALUES
now try this macro on this sample sheet. result is on sheet 2
the macro is
Sub test() Dim r As Range Worksheets("sheet2").Cells.Clear Worksheets("sheet1").Activate Set r = Range("A1").CurrentRegion 'MsgBox r.Address r.AutoFilter field:=6, Criteria1:="x" r.Cells.SpecialCells(xlCellTypeVisible).Copy With Worksheets("sheet2") .Cells(Rows.Count, "A").End(xlUp).PasteSpecial .Range("c1:d1").EntireColumn.Delete .Range("A1:B1").EntireColumn.Insert End With ActiveSheet.AutoFilterMode = False End Sub
if necessary modify the macro.