oWordDocument=createobject("word.application") && Create word object
>with oWordDocument.wordbasic
> .appshow
> endwith
snip...
Thanks Cetin, I've had a chance to play with this. The only bit I couldn't get but can see why I'd want it is the "with..."
I have
objWDdoc.Font(gaFontArray(nCount))
objWDdoc.FontSize(12)
objWDdoc.Insert(ALLTRIM(gaFontArray(nCount)))
objWDdoc.NextCell
and I think this would be tidier (and faster) if put into the one statement.
Additionally - I create all my ole in macro's and then take into fox. I need to insert a table, in my case the default was fine so I could forget the parameters but how would you present this. I tried a with...endwith but it didn't seem to work, might have been my syntax.
TableInsertTable .NumColumns = "2" .NumRows = "1" .InitialColWidth = "Auto" .Format = "0" .Apply = "167"
Thanks - Sarah
PS adored your country when I visited a few years back, just did a triangle in the west: Istanbul, Gallipoli, Dalaman, Cappadocia (spelling?!) etc. Amazing place.
Sarah King
pcpropertymanager.com