|
Running macros on just part of a form |
Top Previous Next |
|
Running Macros on Just Part of a Form The repeat type you use determines how many lines of data a macro will process on a target form. You can specify the exact number of lines to process by using either the Run once or Run "n" times repeat types. But what if you'd like the macro to process part of a form without having to know or care about the number of lines involved? That's easy:
Here's a QuickBooks Online invoice, ready for a macro to be invoked (run).
Notes:
A final note You could achieve the same result by using the Run "n" times repeat type, then entering a repeat count of 3 (to process lines 3 through 5, the same as shown above. But the next time you run the macro, what if you needed to subtotal 4 rows? ...or 7 rows? You'd have to count the number of rows involved to be sure you entered a correct repeat count. Using the Repeat until "X" blank fields approach shown in the example above is more automatic and less error prone. It will run the macro on any number of rows, then stop at a blank line.
|