I have designed a form that uses several buttons to place photos in a form.
After opening the template as a document the buttons do not repond. It
appears to be a security issue but I have set the macro security to low and
the form is protected for forms. All buttons work well in design mode but
freeze in document for (they still appear to receive focus)
Can you please suggest what could be causing this?

Signature
Allan Pitter - Computer Teacher
Hi =?Utf-8?B?QWxsYW4=?=,
> I have designed a form that uses several buttons to place photos in a form.
> After opening the template as a document the buttons do not repond. It
> appears to be a security issue but I have set the macro security to low and
> the form is protected for forms. All buttons work well in design mode but
> freeze in document for (they still appear to receive focus)
> Can you please suggest what could be causing this?
If the buttons have been formatted with text flow formatting, instead of being
inline with the text, you'll get the behavior you describe. The drawing layer
of a document is locked out when it's protected as a form, and this includes
any ActiveX controls or anything you might have put in a Textbox (that's why
form fields can't be inserted into Text boxes).
If the problem is you want to "float" the button in a margin or something,
insert it into a FRAME (from the Forms toolbar). This is NOT in the Drawing
layer, so the button should remain accessible.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Allan - 12 Jul 2005 20:59 GMT

Signature
Allan Pitter - Computer Teacher
> Hi =?Utf-8?B?QWxsYW4=?=,
>
[quoted text clipped - 22 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy,
Thanks for your repsonse.
I have put the buttons into the text boxes to hide them during printing. Is
there a way to hide frames during printing? I have used the folllowing code
to hide the textboxes during printing. Can a similar thing be done to the
frames?
Dim txtbox As Shape
Dim n As Integer
' unlock the form
LockUnlockForm
' set counter to 1
n = 1
'scroll throught the document and turn textboxes to invisible
For Each txtbox In ActiveDocument.Shapes
If ActiveDocument.Shapes(n).Type = msoTextBox Then
With ActiveDocument.Shapes(n)
.Visible = msoFalse
End With
End If
n = n + 1
Next
With ActiveDocument
.PrintOut Background:=False
' set counter to 1
n = 1
'scroll throught the document and turn textboxes to visible
For Each txtbox In ActiveDocument.Shapes
If ActiveDocument.Shapes(n).Type = msoTextBox Then
With ActiveDocument.Shapes(n)
.Visible = msoTrue
End With
End If
n = n + 1
Next
End With
LockUnlockForm
Thankyou
Cindy M -WordMVP- - 11 Aug 2005 08:05 GMT
Hi =?Utf-8?B?QWxsYW4=?=,
> I have put the buttons into the text boxes to hide them during printing. Is
> there a way to hide frames during printing? I have used the folllowing code
> to hide the textboxes during printing. Can a similar thing be done to the
> frames?
You can set the frame's Range.Font.Hidden property, I think.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)