form drop-down values fail to save as text

I

Issac

Word 2003 form drop-down values fail to save as text. My "status"
drop-down saves as:

[status]</status>

It should save as:

[status]mystatus</status>

The following workaround failed:
Microsoft Knowledge Base Article - 212100
http://support.microsoft.com/default.aspx?scid=kb;en-us;212100

It does work if I open in Word 2000 and save from there. But my users
are using Word 2003. Can't find the answer anywhere. I could use
tools\options\save\"save data for forms only" but that will require me
to rewrite a lot of code.

Issac
 
C

Chad DeMeyer

Issac,

Could you do something like this?

For Each oFld In ActiveDocument.FormFields
If oFld.Type = wdFieldFormDropDown Then
lDropCount = lDropCount + 1
oFld.Unlink
End If
Next oFld
ActiveDocument.SaveAs 'your save as text code here
ActiveDocument.Undo Times:=lDropCount

Regards,
Chad
 
I

Issac

Chad,

The call to unlink gives this:
run-time error 438
object does not support this property or method

Issac
 
C

Chad DeMeyer

Issac,

Sorry didn't take the time to test the code. Looking at it again, I think
you will need to iterate the whole fields collection, not just formfields.
So replace

For Each oFld In ActiveDocument.FormFields

with

For Each oFld In ActiveDocument.Fields

Regards,
Chad
 
Top