Solved

generatting formatted word file in vb6

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now