G
Guest
Does anyone know how to create a word table within some vba code within a
document I've created via automation (late binding)? here is a snippet of my
code...
*********** indicates where i want to create the table and insert some data
from my access db.
If Records = 1 Then
If sFUND_NAME <> sNEXT_FUND_NAME Then
With .Selection
.ParagraphFormat.Alignment =
wdAlignParagraphCenter
.InlineShapes.AddPicture
FileName:="W:\Stewardship_Automation\New Picture.png", LinkToFile:=False, _
SaveWithDocument:=True
.TypeParagraph
.TypeParagraph
.Font.Size = 18
.ParagraphFormat.Alignment = 0
.Font.Bold = True
.Font.Italic = True
.TypeText Text:=sFUND_NAME
.TypeParagraph
.TypeParagraph
.TypeParagraph
.Font.Size = 14
.Font.Bold = True
.ParagraphFormat.Alignment =
wdAlignParagraphLeft
.TypeText Text:="2006-2007 RECIPIENT
INFORMATION"
.TypeParagraph
**************************************
.Font.Size = 14
.Font.Bold = True
.TypeParagraph
.TypeText Text:=sName & vbTab & cAmount &
vbTab & sPCITY & vbTab & sPSTATE & vbTab & sCLASS & vbTab & sMajor
.TypeParagraph
.TypeParagraph
.InsertBreak Type:=wdPageBreak
End With
'.ActiveDocument.SaveAs FileName:=SaveAsName
Else
TIA!
document I've created via automation (late binding)? here is a snippet of my
code...
*********** indicates where i want to create the table and insert some data
from my access db.
If Records = 1 Then
If sFUND_NAME <> sNEXT_FUND_NAME Then
With .Selection
.ParagraphFormat.Alignment =
wdAlignParagraphCenter
.InlineShapes.AddPicture
FileName:="W:\Stewardship_Automation\New Picture.png", LinkToFile:=False, _
SaveWithDocument:=True
.TypeParagraph
.TypeParagraph
.Font.Size = 18
.ParagraphFormat.Alignment = 0
.Font.Bold = True
.Font.Italic = True
.TypeText Text:=sFUND_NAME
.TypeParagraph
.TypeParagraph
.TypeParagraph
.Font.Size = 14
.Font.Bold = True
.ParagraphFormat.Alignment =
wdAlignParagraphLeft
.TypeText Text:="2006-2007 RECIPIENT
INFORMATION"
.TypeParagraph
**************************************
.Font.Size = 14
.Font.Bold = True
.TypeParagraph
.TypeText Text:=sName & vbTab & cAmount &
vbTab & sPCITY & vbTab & sPSTATE & vbTab & sCLASS & vbTab & sMajor
.TypeParagraph
.TypeParagraph
.InsertBreak Type:=wdPageBreak
End With
'.ActiveDocument.SaveAs FileName:=SaveAsName
Else
TIA!