M
Mads W.
I have a table where lines are merged in from a ERP program.
The merge is done with bookmarks, and is not using the standard mergefields
in Word.
When merging Orderlines from the ERP, it uses a table. The table looks like
this:
(Tab shows new Colum, new line shows new Row)
---Table---
Headlinie Headline Headline Headline
Linetxt Amount Price Totalamount
Linenote empty empty empty
Linetxt Amount Price Totalamount
Linetxt Amount Price Totalamount
Linenote empty empty empty
....
---Table end---
I want to write some code that runs through the table and puts the Linenote
row over the Linetxt row.
But there should be a check on the 2. colum in the Linenote row. If the
field isn't empty no switch should be made, but the next rows should be
checked.
My result should be this:
---Table---
Headlinie Headline Headline Headline
Linenote empty empty empty
Linetxt Amount Price Totalamount
Linetxt Amount Price Totalamount
Linenote empty empty empty
Linetxt Amount Price Totalamount
....
---Table end---
I can put a bookmark in the first headline cell of the table, so that can be
used as start point.
The merge is done with bookmarks, and is not using the standard mergefields
in Word.
When merging Orderlines from the ERP, it uses a table. The table looks like
this:
(Tab shows new Colum, new line shows new Row)
---Table---
Headlinie Headline Headline Headline
Linetxt Amount Price Totalamount
Linenote empty empty empty
Linetxt Amount Price Totalamount
Linetxt Amount Price Totalamount
Linenote empty empty empty
....
---Table end---
I want to write some code that runs through the table and puts the Linenote
row over the Linetxt row.
But there should be a check on the 2. colum in the Linenote row. If the
field isn't empty no switch should be made, but the next rows should be
checked.
My result should be this:
---Table---
Headlinie Headline Headline Headline
Linenote empty empty empty
Linetxt Amount Price Totalamount
Linetxt Amount Price Totalamount
Linenote empty empty empty
Linetxt Amount Price Totalamount
....
---Table end---
I can put a bookmark in the first headline cell of the table, so that can be
used as start point.