Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Question with VBA and Word

Status
Not open for further replies.

Y2KCobra

IS-IT--Management
Mar 11, 2003
15
GB
Hi,

I am new to VBA and word objects but an hitting a wall real quick. My question is how would I write formated text from a form object using an array (created in form) and VBA.

Example:

Document should read

Title (in Bold)

Section Information
Topic 1
Qtr 1:
Milestone 1: blah blah
Milestone 2: blah blah

Qtr 2:
Milestone 1: blah blah

Topic 2
Qtr 1:
Milestone 1: blah blah
Milestone 2: blah blah
Milestone 3: blah blah

Section Information
Topic 1
Qtr 1:
Milestone 1: blah blah

Qtr 3:
Milestone 1: blah blah


I allow the users to add/delete and edit information selected in an form then want to write the document. Does anyone have any tips or examples that would help?

Thanking you in advance,

Steve
 
I do not have a clue, BUT...

record typing stuff at various places in your document. Then look at the recorded VB Code.

There are objects/attributes in Word like Document, Paragraph, Range. Probably a Paragraphs Collection I would guess. You have Bookmarks and other "Tags" to mark areas of your document.

Play aroud with it. And maybe someone has some specific answers to your questions.

Hope this helps s little :) Skip,
Skip@TheOfficeExperts.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top