VB How-ToAsk your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
using the code below I want to retain the formatting of the first insert of text to the table while applying a new format to the next inserted table. How can I change the current selection to only the second insert? The Text:= is supposed to make the new insert the current selection. Any help would be greatly appreciated.
With objWord.Selection.Tables(1)
.Rows(3).Cells(1).Range.Text = "PLAINTIFF/PETITIONER: "
.Rows(3).Cells(1).Range.Select
End With
With objWord.Selection
.Font.Name = "Verdana"
.Font.Size = 8.5
End With
objWord.Selection.InsertAfter Text:="John Smith"
With objWord.Selection
.Font.Name = "Courier"
.Font.Size = 12
End With