Home > Software engineering >  VB programming to generate a Word document
VB programming to generate a Word document

Time:09-30

I write a small program to view in VB interface using enter some text in the text box, control Word document is generated, request from the second page to the last page of the first line of a fixed text, such as the first line is "file", from the second line in the text to the output of the previous page to Word document, that is not in the header section, is in the body, ask everybody to help guide! [/size]

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:

also want to ask, is the selection object, used in the macro code, some of the methods and properties are the selection object to use, I used a range object, when I use myrange. Select methods when the error message "lack of function or variable", how be to return a responsibility?
  •  Tags:  
  • VBA
  • Related