send form by email

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,
I hope I have the right forum. I think there used to be a dedicated forms forum but I can't seem to find it.

I have created a normal form (not a user form) in a normal Word document.

I have created a Command button from the Controls Toolbox toolbar
I want to be able to send the whole document via email using the Click event of the command button like this:

Private Sub CommandButton1_Click()
ActiveDocument.SendForReview _
Recipients:="someone@xxxxxxxxxxx", _
Subject:="Please review this document.", _
ShowMessage:=True, _
IncludeAttachment:=False
End Sub

Trouble is, as soon as I create the command button (even before writing the above code) my form ceases to work. It instantly loses protection and ceases to behave like a form.
In fact, the form still refuses to work even after deleting the command button.

I've tried putting the form and the button in different sections (Insert>Break>Continuous) but this hasn't made any difference.

It would seem that I need to programmatically Un-protect and then re-protect but the behaviour of the form after the creation of the command button makes that futile.

Without the form, the command button works
Without the button, the form works.

Any suggestions greatly appreciated.

Bob
.



Relevant Pages

  • Re: Technical Q&A (Was Re: Actual VMS Technical Qeustion! DECnet Phase IV partly missing objects
    ... posted to the forum, search the forum for your "Forum user name" to ... should both display in LIST. ... logged in on my test box and found a command NCP SET KNOWN OBJECT ALL ... for one system someone must have run DEFINE TASK blah blah ... ...
    (comp.os.vms)
  • Re: Canon LBP2900B Printer on Ubuntu 10.04
    ... Please don`t forget to report any issue in our forum for Canon ... I have trying to get printout from my Canon LBP2900B for last few day, ... after few movement it forget the password / command given ...
    (Ubuntu)
  • Re: [Worshop 6] Problem linking a static lib which includes another static lib.
    ... I already had a look at the forum you talk about and did not find any reply ... I have to use a static lib provided by an external company. ... If I try to make a shared library using the following command: ... Can anyone give me the right command line for statically linking ...
    (comp.lang.cpp)
  • Re: send form by email
    ... I think I've solved it by clicking the Design Mode button on a tiny toolbar that had popped up in the corner. ... I have created a normal form in a normal Word document. ... I want to be able to send the whole document via email using the Click event of the command button like this: ... as soon as I create the command button my form ceases to work. ...
    (microsoft.public.word.docmanagement)
  • Re: Any suggestion for Access forums after June 1?
    ... the contents of a public forum. ... news servers. ... If MS issues an authenticated rmgroup command and it is honored by others, ...
    (microsoft.public.access.formscoding)