Vote count:
0
I am actually working on a vb-script and I am stuck on 2 points;
Primo, I need to create a table, which I did but the positioning of the data does not correspond to the cell I chose. Here is the code;
Set objRange = objDoc.Range()
objDoc.Tables.Add objRange, 2, 2
Set objTable = objDoc.Tables(1)
objTable.Columns(1).Width = 500
objTable.Columns(2).Width = 100
objTable.Cell(1, 1).Range.Text = Details
objTable.Cell(2, 1).Range.Text = "Test1"
objTable.Cell(2, 2).Range.text = "Test2"
According to the code, the Details should be placed in column1, row1 but however it seems to appear after the Test2.
Secundo, I want to add a background image behind the 'Details' section. (Should appear behind the text) and should extend from cell1 to cell2 - if merging cell is possible.
Can anyone familiar with vbscript please help me out?
asked 1 min ago
Create table in vbScript for MsWord
Aucun commentaire:
Enregistrer un commentaire