Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Everyone
The small macro below copies the information from row 20 on to an order form sheet. I need to have it check from row 20 to row 36 and copy it if column B starts with a number. Your help is always appreciated. Thank you Sub Parts_Order() With Sheets("Parts Order Form") 'QTY lLastRow = .Cells(.Rows.Count, "a").End(xlUp).Row .Cells(lLastRow + 1, "a").Value = _ Sheets("Invoice").Range("A20").Value 'Part Number lLastRow = .Cells(.Rows.Count, "B").End(xlUp).Row .Cells(lLastRow + 1, "B").Value = _ Sheets("Invoice").Range("b20").Value End With End Sub Sub Parts_Order() 'Invoice Number lLastRow = .Cells(.Rows.Count, "d").End(xlUp).Row .Cells(lLastRow + 1, "d").Value = _ Sheets("Invoice").Range("K2").Value 'QTY lLastRow = .Cells(.Rows.Count, "a").End(xlUp).Row .Cells(lLastRow + 1, "a").Value = _ Sheets("Invoice").Range("A20").Value 'Part Number lLastRow = .Cells(.Rows.Count, "B").End(xlUp).Row .Cells(lLastRow + 1, "B").Value = _ Sheets("Invoice").Range("b20").Value End With End Sub Regards Cimjet |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Condition based copy/paste of range | Excel Programming | |||
Condition based copy/paste of range | Excel Programming | |||
Condition based copy/paste of range | Excel Programming | |||
Copy range based on condition | Excel Programming | |||
Create/copy combo boxes in one range if condition is met in a different range | Excel Programming |