mmcdonald6
New Member
- Joined
- Jun 28, 2014
- Messages
- 2
Hello all. I am trying to populate Word from Excel and there seems to be two ways to go about doing this, Mail Merge or VBA.
I was wondering which of the two is the best to further pursue for my application.
I am looking for a solution which populates User Requirements documents. These requirements, however, can vary in their contents and fields depending on the equipment being specified.
Here is a general example of the format I use:
[h=1]1.0 Requirement Category 1[/h]
<tbody>
[TD="colspan: 2"][h=2]1.1 Requirement 1[/h][/TD]
</tbody>[h=1]2.0 Requirement Category 2[/h]
<tbody>
[TD="colspan: 2"][h=2]2.1 Requirement 1[/h][/TD]
</tbody>
My goal is this:
Whatever the approach, it needs to be able to accommodate any number of requirements
I know this can be done in VBA, and I am somewhat familiar with VBA, but am looking for the best approach. That is, if VBA is correct, should the script be in Word or Excel?
So, I was looking to you guys for opinions on the two approaches or direction to relevant links or tutorials.
Thank you in advance.
I was wondering which of the two is the best to further pursue for my application.
I am looking for a solution which populates User Requirements documents. These requirements, however, can vary in their contents and fields depending on the equipment being specified.
Here is a general example of the format I use:
[h=1]1.0 Requirement Category 1[/h]
1.1.1 Must do x | |
1.1.2 Must do y | |
[h=2]1.2 Requirement 2[/h] | |
1.2.1 Must do a | |
1.2.2 Must do b | |
<tbody>
[TD="colspan: 2"][h=2]1.1 Requirement 1[/h][/TD]
</tbody>
2.1.1 Must do x | |
2.1.2 Must do y | |
<tbody>
[TD="colspan: 2"][h=2]2.1 Requirement 1[/h][/TD]
</tbody>
My goal is this:
- The entire contents of all text would be entered in Excel.
- The Word document would populate the fields based on that data.
Whatever the approach, it needs to be able to accommodate any number of requirements
- A document could have as little as 3 requirement categories up to 20 or 30
- A requirement category could have as few as 1 item up to 20
I know this can be done in VBA, and I am somewhat familiar with VBA, but am looking for the best approach. That is, if VBA is correct, should the script be in Word or Excel?
So, I was looking to you guys for opinions on the two approaches or direction to relevant links or tutorials.
Thank you in advance.