Auto Formating in Form box

E

Eric P.

Is there a way to make information that is copied from lets say a pdf into a
form box automatically convert to that documents font and dont size?

In addition to that can I give someone the ability to make this info bold if
they wish to?

I guess when you lock the document down it locks the user out of the font
type and size.

Thanks for the help!!!!
 
J

Jean-Guy Marcil

Eric P. said:
Is there a way to make information that is copied from lets say a pdf into a
form box automatically convert to that documents font and dont size?

In addition to that can I give someone the ability to make this info bold if
they wish to?

I guess when you lock the document down it locks the user out of the font
type and size.

What type of info would be transfered?
How?
What if the target document has more than one font/size in use?

Yes, when the document is protected for forms, many tools become unavailable.

To make the selected text in a formfield bold, you need VBA:

ActiveDocument.Unprotect
Selection.Font.Bold = wdToggle
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

What Word version?
 
E

Eric P.

The paragraphs would be copied from a PDF and the font & size does differ
from the letter I created.

My goal is to have whatever the current font of the letter to carry over to
the pasted info or allow the user to apply formating to the copied info in
the form box

Using Word 2002
 
J

Jean-Guy Marcil

Eric P. said:
The paragraphs would be copied from a PDF and the font & size does differ
from the letter I created.

My goal is to have whatever the current font of the letter to carry over to
the pasted info or allow the user to apply formating to the copied info in
the form box

Using Word 2002

The easiest would be to apply a style to the pasted stuff:

ActiveDocument.Unprotect
Selection.Style = "Normal"
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True


For customizing the formatting, see the code in my previous reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top