Solved

generatting formatted word file in vb6

Posted on 2006-06-28
1
166 Views
Last Modified: 2012-05-05
hi all,
i would like to generate a word document with all formatting like font formatting and creation of tables.. i think macros are avail to do that.. as i was unfamiliar with it can any one help me ... using macro or suggest me any othe way to do that
thanks in advance
0
Comment
Question by:VIMALCHAND
1 Comment
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 300 total points
ID: 17000107
If you want to generate many similarly formatted documents, you might want to consider creating a template.

Macros are what Word developers call bits of VBA code. VBA code can manipulate most Word objects using the Word Object model. A good place to start is to record macros in Word (Tools/Macro/Record New Macro). Though such recorded macros do have their problems, you can learn a lot by studying the code produced. You can toggle to the VBA editor form the application interface with ALT + F11

In VB6, you can use more-or less the same code as in VBA, so you could copy and paste the code.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question