excel - Use VBA Macro to print conditionally -


Thanks in advance for your help I have the following macro function:

  sub macro 1 () If the cell (3, 4) & gt; 0 Then Sheets ("A-Lawn"). Select ActiveWindow. Selected Sheets.PrintsTop Copies: = 1, Collated: = True End Ending   

What I have to do is a condition where the amount in column 4 is more than $ 0 Their individual Excel sheet prints. Below is the column header and my first seller information.

  Name of the contractor sheet PPW Advance Allen Bee Abelcher $ 7,947.60 $ 500.00   

So, if column 4 & gt; 0, then print the letters listed in column 2. I am very new to this and appreciate whatever support you can provide. Assume that you have a list of sheet names in the rows, look at the following lines, and use the required sheet.

Print:

  sub macro 1 () retarded as long lLRRROW long I integer lLastRow = Cells.Find (what: = "*", later: = range ("A 1 "), search order: = xlbir, search direction: = xl preverses). For rob I = 2 for llestro if cell (i, 4) & gt; 0 then the sheets (cell (i, 2) .value) .printopt copies: = 1, colette: = true and if the next I end all    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -