W
Wullie
Hi,
I am very new to VBA for word but know my way around Excel, I just can't
seem to grasp the page structure of the doucment in Word, so maybe I'm asking
stupid questions.
I have code in Excel that takes selected data and I want to create a word
document to be printed off from this.
The word document will be formatted as follows
1) Top of page, 1 image, 1 header, same images as before
2) A single line blurb of text
3) Text title values followed by the corresponding variables from the excel
spreadsheet (eg. Course Name - <course>) in 2 cells. <-- I know this will be
best setup as a table, or rather several because these cells are different
lengths/column numbers
4) Another line of blurb
5) A footer table.
What is my best way of going about this?
I tried creating a table, then text, then another table to start myself off
and the blurb text ended up in tthe first cell of the first table.
How do I get the cursor to move out of the table and onto a new paragraph?
I then tried creating text and doing converttotable, but my paragraph
numbers seem to get confused with that (char 1 of a cell is paragraph 1, char
2 is paragraph 2 and stays paragraph 2 until 2nd char of 2nd cell - that
sounds wrong to me), so wouldnt work with placement of variables.
Is my best way to create template and somehow figure out where the variables
will go? If so, anyone have any ideas how to get cell placement on a template?
Any help with the above (rambling) will be greatly appreciated (if
possible), or even a point in the right direction of somewhere I can learn
VBA for word.
Thanks
I am very new to VBA for word but know my way around Excel, I just can't
seem to grasp the page structure of the doucment in Word, so maybe I'm asking
stupid questions.
I have code in Excel that takes selected data and I want to create a word
document to be printed off from this.
The word document will be formatted as follows
1) Top of page, 1 image, 1 header, same images as before
2) A single line blurb of text
3) Text title values followed by the corresponding variables from the excel
spreadsheet (eg. Course Name - <course>) in 2 cells. <-- I know this will be
best setup as a table, or rather several because these cells are different
lengths/column numbers
4) Another line of blurb
5) A footer table.
What is my best way of going about this?
I tried creating a table, then text, then another table to start myself off
and the blurb text ended up in tthe first cell of the first table.
How do I get the cursor to move out of the table and onto a new paragraph?
I then tried creating text and doing converttotable, but my paragraph
numbers seem to get confused with that (char 1 of a cell is paragraph 1, char
2 is paragraph 2 and stays paragraph 2 until 2nd char of 2nd cell - that
sounds wrong to me), so wouldnt work with placement of variables.
Is my best way to create template and somehow figure out where the variables
will go? If so, anyone have any ideas how to get cell placement on a template?
Any help with the above (rambling) will be greatly appreciated (if
possible), or even a point in the right direction of somewhere I can learn
VBA for word.
Thanks