View Full Version : Putting a paragraph together in Word


Pcguru
09-29-2008, 08:17 PM
The macro should very simple I think.

If Check1 is checked then string = string + Check1. I get the name Check1 from the Check1.bmp at the bottom of my thread and I think that this is the variable name.

When I have added all the checkboxes to the string then I would like the string to be inserted into my open form document. Since I have now knowledge of what or how I will get this done if you have a better way then please enlighten me.

This is just an example that I have put together and it does not seem to work this way.
Example:

Sub Try()
Dim InText As String
Dim OutText As String

Do While Not EOF
If Check1 = True Then Replace(InText, InText, + Check1)
If Check1 = True Then Replace(InText, InText, + Check2)
If Check2 = True Then Replace(InText, InText, + Check3)
If Check3 = True Then Replace(InText, InText, + Check4)
If Check4 = True Then Replace(InText, InText, + Check5)
OutText.InTex.ActiveDocument
End If
Loop

End Sub

Pcguru
09-30-2008, 07:19 PM
This has been solved

But I would like to place the result at a cretin spot on my word document. Does anyone know how I can do that?

ajetrumpet
10-01-2008, 07:38 AM
This has been solved

But I would like to place the result at a cretin spot on my word document. Does anyone know how I can do that?set a bookmark, and then research gotobookmark and copy / paste in the WORD help menu. They give syntax examples of how to do this...