Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Word 2008 Scrip...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1623 of 1674
Post > Topic >>

Word 2008 Script

by "G.Miller" <geoff.w.miller@[EMAIL PROTECTED] > Jun 13, 2008 at 06:03 AM

hi, i have a script that i wrote a few years ago that takes
information from a filemaker database and inserts it into a word
do***ent.  this script was written before Word had any kind of
redeeming applescipt dictionary and included VBA.

bascially, the ****tions of the script that take the info out of
filemaker are still in tact.  what im having trouble with is replacing
the 'do visual basic' commands with applescript.

i was skimming the new Word library but cant make sense of it.

any help is appreciated.

thanks,

G.Miller


do Visual Basic "Selection.MoveDown Unit:=wdLine, Count:=2"
	do Visual Basic "Selection.TypeParagraph"
	do Visual Basic "Selection.InsertDateTime DateTimeFormat:=\"MMMM d,
yyyy\", InsertAsField:= False"
	do Visual Basic "Selection.TypeParagraph"
	do Visual Basic "Selection.TypeParagraph"
	do Visual Basic "ActiveDo***ent.Tables.Add Range:=Selection.Range,
NumRows:=1, NumColumns:=2, DefaultTableBehavior:=wdWord9TableBehavior,
AutoFitBehavior:=wdAutoFitFixed"
	do Visual Basic "Selection.Tables(1).AutoFormat
Format:=wdTableFormatSimple1, ApplyBorders:=False,
ApplyShading:=False, ApplyFont:=False,
ApplyColor:=False,ApplyHeadingRows:=False, ApplyLastRow:=False,
ApplyFirstColumn:=False,ApplyLastColumn:=False, AutoFit:=False"
	set contents of selection to mycontactaddress
	do Visual Basic "Selection.MoveRight Unit:=wdCell"
	do Visual Basic "Selection.ParagraphFormat.Alignment =
wdAlignParagraphRight"
	set contents of selection to mycontactnumbers
	do Visual Basic "Selection.MoveDown Unit:=wdLine, Count:=1"
	do Visual Basic "Selection.TypeParagraph"
	do Visual Basic "Selection.ParagraphFormat.Alignment =
wdAlignParagraphJustify"
	set contents of selection to myestimatebody
 




 4 Posts in Topic:
Word 2008 Script
"G.Miller" <  2008-06-13 06:03:51 
Re: Word 2008 Script
yello62 <yello62@[EMAI  2008-06-13 06:52:43 
Re: Word 2008 Script
"G.Miller" <  2008-06-13 10:54:18 
Re: Word 2008 Script
yello62 <yello62@[EMAI  2008-06-13 12:16:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 11:37:28 CST 2008.