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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating and selecting paragraphs - Data Extraction

Status
Not open for further replies.

X2600

IS-IT--Management
Nov 29, 2010
11
US
Hello all!

I am new to the forums. I am working on a project and am wondering the best way to go about accomplishing a particular task.

A little about the project:

The project involves automating a client's training guide creation process. Training developers create training guides using a series of macro buttons. They use them to create tables and various content blocks.

The issue:

I am looking to create two separate types of content blocks by using the buttons in the attached image. The sole purpose of these content blocks is to be able to distinguish regular content from facilitator notes. The user will have the option when the guide is complete to press a button that says "Make participant guide" and basically the button will iterate through the regular content blocks and place them in a new document. This is a time-saving process. I am sure there are other ways to accomplish the automation of the participant guide, but I haven't thought of anything better.

The question:

How can i create a sort of content block that I can use code to iterate through later? It can be a form field that has a name set in an array (content(i) --> content1, content2, content3, etc)... or a special invisible tag <regularcontent>stuff here</regularcontent. That way I can either iterate through the content blocks or parse the content later.

What are your suggestions?

Thank you so much in advance. I'm a bit stumped on this.
 
 http://files.engineering.com/getfile.aspx?folder=c8a2a068-3349-4b47-a1ba-21091b32570a&file=content_blocks.png
Hi,

Welcome to Tek-Tips! 😀

So these blocks are either 1) a Form Field having a nameID in your array, or 2) it is an actual block of text Delemited as a markup: <name>...</name>. Same name always?



Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
SkipVought,

Yes, they'll all have a similar name. So for the facilitator content blocks, they'll all be named facilitator1, facilitator2, facilitator3. The regular content blocks will be named something like regular1, regular2, regular3, etc... I need the button to automate the naming of the content blocks by increasing the number each time. The name can even be the same name <facilitator>...</facilitator>. If it can work like that without the number on the end, we could do that too.
 
It is word 2010. I am not sure how the comment feature could be used to isolate content in the document. Can you reference comments in vba?

Also, I wonder if the traditional vb textboxes (like ms access) are available. I think multiline textboxes might work. My other thought is a multiline formfield. And possibly my last thought is xml formfields. Not exactly sure if any of these will pan out. I am interested in hearing more about your comments idea.
 
Comments are a collection.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
I take it that they can be referenced in vba as a whole, then?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top