<[EMAIL PROTECTED]> schrieb:

> I want to add a checkbox in my Office Worddocument. 
> The VB Code is: 
> 
> Set ffield = ActiveDocument.FormFields.Add( _ 
>    Range:=ActiveDocument.Range(Start:=0, End:=0), _ 
>    Type:=wdFieldFormCheckBox) 
> ffield.CheckBox.Value = True 
> 
> Can anyone help me to translate in RB? 


Now I found a solution by myself..........


dim word as ........  //and other

dim myrange as WordRange
dim field as WordFormFields
dim typy as new OleParameter

myrange=doc.paragraphs(9).Range  // or other
typy.value=Office.wdFieldFormCheckBox

field=word.activeDocument.FormFields.add(myrange,typy)
field.checkbox.value=true  

Bye
Aci
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to