Forum Discussion

A_SIRAT's avatar
A_SIRAT
Iron Contributor
Apr 23, 2021
Solved

VBA code

Hi, I have an excel sheet (attached)that generates delivery reports based on the Delivery nr. entered.  The information on the delivery note is pulled from a source table that has all the data. Afte...
  • JMB17's avatar
    Apr 24, 2021

    A_SIRAT 

     

    I attached an example that may give you some ideas. I added a worksheet with a structured table to list the delivery numbers to include in a "batch processing" function. The filter and print preview is triggered by the worksheet change event handler. Then, there is a button that triggers the batch processing, which will get the delivery numbers from the table on Sheet2, then pass them to the Delivery Note worksheet, which will change the value in the delivery number cell and trigger the change event handler.

     

    So, you should be able to input a delivery number yourself, or run a batch.

     

     

Resources