Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50162

VBA invoice button

$
0
0
Hi everyone i have two worksheets: worksheet(3): alarm price 1000
Row C Row D

oil 26
lube job 18
radiator empty
transmission empty
inspection empty
car parts alarm
labor 20 bucks 3 hours
i need to pass that row c and row d without the empty cells to worksheet2 example in this case i need oil 26, lube job 16, car parts as 100 because the alarm price its 100, and labor as 60 because 20*3 its 60


this is my code right now:

Range("C12:D22").AutoFilter 2, "<>"
Range("C12", Range("D22").End(xlUp)).Copy Sheet2.[C11]
ActiveSheet.AutoFilterMode = False



when i run it my data passes to worksheets(2) but alarm stays as alarm instead of go as the value of the alarm that its 100
please need help thanks

Viewing all articles
Browse latest Browse all 50162

Trending Articles