Home > Software engineering >  VB implementation call WORD templates to print
VB implementation call WORD templates to print

Time:10-08

VB call written word template to output calculation results to the word on the specified location, and then print the word how to implement? Bother with all the great god gives directions,

CodePudding user response:

Recording a macro, his reference to the generated code,

CodePudding user response:

I generally is to transfer data to vbTab (column) and vbCrLf delimited string (line), copied to the Word, use macros to into its form, and then make the necessary format setting,

As long as you are done in accordance with the requirements for the layout of the template and format, the effect is the same,

CodePudding user response:

Start recording macros in the Word 2003, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,

CodePudding user response:

A mail merge function WORD, insert data fields in the corresponding position, will automatically fill in the data,

CodePudding user response:

Haha, thank you all for the great god, today has solved the ah, I'm in the word inserted into the domain of,
  • Related