R
Ron Yeh
It is very awkward in Word trying to move texts and pictures. Unless we miss
some functions in Word. We currently looking to move our Ventura publisher
files to MS publisher files. We intend to try publisher application due to
its ease of moving picture and text on a page. However, it is not so easy as
in Word to put SQL database info (stored procedure with parameters) into
"proper spot" on Publisher files. Can you make Bookmark in Publisher 2007 as
good as the bookmark in Word 2000 programmatically ? right now I have to use
code like this:
Dim strName As String, numh As Double, shp1 As Shape
' strName = ActiveDocument.Pages(1).Shapes.Item(2).TextFrame.TextRange.Text
For Each shp1 In ActiveDocument.Pages(1).Shapes
If shp1.Type = pbTable Then
Debug.Print shp1.Table.Columns(1).Cells(1).TextRange.WordsCount
If shp1.Table.Columns(1).Cells(1).TextRange.WordsCount > 1 Then
shp1.Table.Columns(1).Cells(1).TextRange.Words(1).Select
shp1.Table.Columns(1).Cells(1).TextRange.Delete
' shp1.Table.Columns(1).Cells(1).TextRange.Collapse
(pbCollapseEnd)
End If
shp1.Table.Columns(1).Cells(1).TextRange.InsertAfter
("CodeNumaddaaa")
End If
Next
This is not good if there's a change on the table.
some functions in Word. We currently looking to move our Ventura publisher
files to MS publisher files. We intend to try publisher application due to
its ease of moving picture and text on a page. However, it is not so easy as
in Word to put SQL database info (stored procedure with parameters) into
"proper spot" on Publisher files. Can you make Bookmark in Publisher 2007 as
good as the bookmark in Word 2000 programmatically ? right now I have to use
code like this:
Dim strName As String, numh As Double, shp1 As Shape
' strName = ActiveDocument.Pages(1).Shapes.Item(2).TextFrame.TextRange.Text
For Each shp1 In ActiveDocument.Pages(1).Shapes
If shp1.Type = pbTable Then
Debug.Print shp1.Table.Columns(1).Cells(1).TextRange.WordsCount
If shp1.Table.Columns(1).Cells(1).TextRange.WordsCount > 1 Then
shp1.Table.Columns(1).Cells(1).TextRange.Words(1).Select
shp1.Table.Columns(1).Cells(1).TextRange.Delete
' shp1.Table.Columns(1).Cells(1).TextRange.Collapse
(pbCollapseEnd)
End If
shp1.Table.Columns(1).Cells(1).TextRange.InsertAfter
("CodeNumaddaaa")
End If
Next
This is not good if there's a change on the table.