Solved

generatting formatted word file in vb6

Posted on 2006-06-28
1
167 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Updates not working for MS Windows 7 12 181
message box in access 4 51
Publisher:   Unknown     VB.exe Application 1 28
Error with a code discussed on this page 5 31
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

856 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