回复:有求 Excel Macro 高手

来源: 2005-01-27 04:43:27 [旧帖] [给我悄悄话] 本文已被阅读:

You need to have at least a couple of steps like:
1. let user to input minimum number 1 and maximum number 10 in your case, and assign each of these values to variables intMin and intMax;
2. have procedures to run your business logic (print the report and then clear the input values for the next new report); and,
3. format the print settings.

I'd suggest you use the record macro function to record your setps first, then modify the vba scripts.