Hello, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
<o
> </o
>
In order to print invoices based on the result of a dropdown list, I am using the following code that Jon von Der Heyden helped me build. Thousands of thanks to him!<o
></o
>
<o
> </o
>
Sub Print_Invoice()
Dim rCell As Range
With ActiveSheet 'change to relevant sheet name if you want to execute macro from another sheet
For Each rCell In .Range("A2:A10")
.Range("J3").Value = rCell.Value: Calculate
If .Range("P14").Value > 0 Then .PrintOut
Next rCell
End With
End Sub <o
></o
>
<o
> </o
>
<!-- / message --><!-- sig -->You can see all details of that previous post at http://www.mrexcel.com/forum/showthread.php?t=376244&highlight=printing <o
></o
>
<o
> </o
>
I am trying to include in that code two more parameters:<o
></o
>
1/ Each invoice needs to be printed TWICE.
2/ I would like to print out invoices in an ALPHABETICAL order provided by the content of cell H3 (name of the deliverer). In H3, I have a vlookup function changing the name of the deliverer based on the selected client from the dropdown list located in J3.
Any idea how to do that?
Your help would be very valuable. <o
></o
>
<!-- / message -->
<o
In order to print invoices based on the result of a dropdown list, I am using the following code that Jon von Der Heyden helped me build. Thousands of thanks to him!<o
<o
Sub Print_Invoice()
Dim rCell As Range
With ActiveSheet 'change to relevant sheet name if you want to execute macro from another sheet
For Each rCell In .Range("A2:A10")
.Range("J3").Value = rCell.Value: Calculate
If .Range("P14").Value > 0 Then .PrintOut
Next rCell
End With
End Sub <o
<o
<!-- / message --><!-- sig -->You can see all details of that previous post at http://www.mrexcel.com/forum/showthread.php?t=376244&highlight=printing <o
<o
I am trying to include in that code two more parameters:<o
1/ Each invoice needs to be printed TWICE.
2/ I would like to print out invoices in an ALPHABETICAL order provided by the content of cell H3 (name of the deliverer). In H3, I have a vlookup function changing the name of the deliverer based on the selected client from the dropdown list located in J3.
Any idea how to do that?
Your help would be very valuable. <o
<!-- / message -->