A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Issue with returnable form



 
 
Thread Tools Search this Thread Display Modes
  #11  
Old October 8th 08, 04:46 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Issue with returnable form

The View Code window is just a text editor. If you don't see the code, trying
using PgDn. I recall a bug in early Outlook 2007 versions where the code
didn't show unless you paged down.

Also, saving the item, i.e. clicking the Save button, does nothing useful at
all. Don't waste your time. The right way to make a backup copy of a form is
to use the Save As command to save it as an .oft file.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54

"Gary Newport" wrote:

I save the form when I feel it is at a stage where I want to see it
function. I then publish it. As a matter of protection I then go to save it
again (in case the publishing has an impact on the form) and then close the
form.

I then open the form in the ToolsFormsChoose Form... or the
FileNewChoose Form.. route.

What I am finding is that, if I click on View Code and then paste your code
into the window, close the window, save and publish then I find that when I
run the form the button does nothing. When I return to design the form there
is nothing in the View Code window at all.

Slightly separately, is the View Code window generalistic (therefore all
code for the form will appear in there) or is it object-based (should I be
clicked on the button to apply the code for the button)?

"Sue Mosher [MVP-Outlook]" wrote:

I don't quite follow what you mean by "clicking on Publish and then save."
Publishing a form and saving an item are two entirely different things. After
you publish the form, to use that form, you can launch a new item with it
using the Tools | Forms | Choose Form command. If you want to design it again
(and see the code), use Tools | Forms | Design a Form.

"Gary Newport" wrote:

Hi Sue again!

Okay, I have tried several times to put the code in but every time I close
the form the code disappears; lost into the ether! (

Do you know why? Am I missing a permissions thing (which I can get changed)
or am I doing something wrong?

I am using Outlook 2007, using View Code and pasting the code in, clicking
on Publish and then save. I am now saving to the organisational library area
(I am the only one working ion there and the employees know not to use the
form yet).

Help please! )

"Gary Newport" wrote:

Thanks for this. I will give it all a try tomorrow. The fun of learning, eh?

"Sue Mosher [MVP-Outlook]" wrote:

Code for a custom form goes into the form's code editor (View Code). VBA code
is an entirely separate code environment.



"Gary Newport" wrote:

Thanks for this.

One more stupid question; does thi code into "View Code" or directly into
the currentsession of the VBA Editor?

Ads
  #12  
Old October 8th 08, 05:40 PM posted to microsoft.public.outlook.program_forms
Gary Newport
external usenet poster
 
Posts: 19
Default Issue with returnable form

Thanks Sue.

However, this still takes me back to my original problem then.

I publish the form to the Organisational Forms Library, I then File New
Choose Form... and select my form. I complete the active elements (the form
is made up of enabled and disabled elements, which I may simply remove) and
then send it to myself (for checking purposes).

The form arrives with the completed fields correct and I am able to add to
the newly enabled fields. However, when I click on the button...nothing.
Diddley squat. Zilch.

I can repeatedly click and nothing happens at all. I'd expect the message to
close and a new message appear (since I was the sender) but... nothing!

Why not? The Network Manager has confirmed that macros are enabled by
default and that I have full, administrative permissions on the library.
  #13  
Old October 8th 08, 06:10 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Issue with returnable form

Did you make sure that the form was published with the "Send form definition
with item" box on the (Properties) page unchecked? Is the button actually
named "btnReturn" to match the name of the Click event handler? Does the
item show the MessageClass value of your published custom form, i.e.
IPM.Note.Something? Have you tried adding MsgBox statements to the code to
get a better idea of what's executing?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"Gary Newport" wrote:

Thanks Sue.

However, this still takes me back to my original problem then.

I publish the form to the Organisational Forms Library, I then File New
Choose Form... and select my form. I complete the active elements (the form
is made up of enabled and disabled elements, which I may simply remove) and
then send it to myself (for checking purposes).

The form arrives with the completed fields correct and I am able to add to
the newly enabled fields. However, when I click on the button...nothing.
Diddley squat. Zilch.

I can repeatedly click and nothing happens at all. I'd expect the message to
close and a new message appear (since I was the sender) but... nothing!

Why not? The Network Manager has confirmed that macros are enabled by
default and that I have full, administrative permissions on the library.

  #14  
Old October 8th 08, 06:26 PM posted to microsoft.public.outlook.program_forms
Gary Newport
external usenet poster
 
Posts: 19
Default Issue with returnable form

Did you make sure that the form was published with the "Send form
definition with item" box on the (Properties) page unchecked?

Have now! Didn't before. What does this mean, please?

Is the button actually named "btnReturn" to match the name of the Click event handler?


Yes. Double checked by yes! )

Does the
item show the MessageClass value of your published custom form, i.e. IPM.Note.Something?


Pardon? Sorry but where is this, what is this and why? Oh I feel like I'm
regressing! )

Have you tried adding MsgBox statements to the code to get a better idea of what's executing?


Have throughout this form. Just would like a response at some time.

I am incredibly grateful for all your help, by the way.

"Sue Mosher [MVP-Outlook]" wrote:

Did you make sure that the form was published with the "Send form definition
with item" box on the (Properties) page unchecked? Is the button actually
named "btnReturn" to match the name of the Click event handler? Does the
item show the MessageClass value of your published custom form, i.e.
IPM.Note.Something? Have you tried adding MsgBox statements to the code to
get a better idea of what's executing?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"Gary Newport" wrote:

Thanks Sue.

However, this still takes me back to my original problem then.

I publish the form to the Organisational Forms Library, I then File New
Choose Form... and select my form. I complete the active elements (the form
is made up of enabled and disabled elements, which I may simply remove) and
then send it to myself (for checking purposes).

The form arrives with the completed fields correct and I am able to add to
the newly enabled fields. However, when I click on the button...nothing.
Diddley squat. Zilch.

I can repeatedly click and nothing happens at all. I'd expect the message to
close and a new message appear (since I was the sender) but... nothing!

Why not? The Network Manager has confirmed that macros are enabled by
default and that I have full, administrative permissions on the library.

  #15  
Old October 8th 08, 06:38 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Issue with returnable form

The "Send form definition with item" box is an obsolete setting that no
longer has any utility. It should always be unchecked. If it was previously
checked and you unchecked it, you must republish the form.

The value of the MessageClass property determines what form Outlook will use
to display the item. You set the form display name and message class when you
published the form. You can see these message class values for individual
items by adding the Message Class field to a table view.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"Gary Newport" wrote:

Did you make sure that the form was published with the "Send form

definition with item" box on the (Properties) page unchecked?

Have now! Didn't before. What does this mean, please?

Is the button actually named "btnReturn" to match the name of the Click event handler?


Yes. Double checked by yes! )

Does the
item show the MessageClass value of your published custom form, i.e. IPM.Note.Something?


Pardon? Sorry but where is this, what is this and why? Oh I feel like I'm
regressing! )

Have you tried adding MsgBox statements to the code to get a better idea of what's executing?


Have throughout this form. Just would like a response at some time.

I am incredibly grateful for all your help, by the way.

"Sue Mosher [MVP-Outlook]" wrote:

Did you make sure that the form was published with the "Send form definition
with item" box on the (Properties) page unchecked? Is the button actually
named "btnReturn" to match the name of the Click event handler? Does the
item show the MessageClass value of your published custom form, i.e.
IPM.Note.Something? Have you tried adding MsgBox statements to the code to
get a better idea of what's executing?


"Gary Newport" wrote:

Thanks Sue.

However, this still takes me back to my original problem then.

I publish the form to the Organisational Forms Library, I then File New
Choose Form... and select my form. I complete the active elements (the form
is made up of enabled and disabled elements, which I may simply remove) and
then send it to myself (for checking purposes).

The form arrives with the completed fields correct and I am able to add to
the newly enabled fields. However, when I click on the button...nothing.
Diddley squat. Zilch.

I can repeatedly click and nothing happens at all. I'd expect the message to
close and a new message appear (since I was the sender) but... nothing!

Why not? The Network Manager has confirmed that macros are enabled by
default and that I have full, administrative permissions on the library.

  #16  
Old October 9th 08, 11:35 AM posted to microsoft.public.outlook.program_forms
Gary Newport
external usenet poster
 
Posts: 19
Default Issue with returnable form

Thanks for all of this Sue. Has worked really well.

I have also found that I need to publish to both the Organisational Forms
Library and my Personal Forms Library to ensure changes migrate properly. I
need to now develop an effective working practice to know which one I have
changed!

Three further questions and then I promise to leave you alone...

1. Can you delete forms from your Personal Forms Library, once you have
finished developing?

2. I'd like the form subject to contain reference to a completed field on
the Compose field. I tried this but it did not work. Where am I going wrong?

Function Item_Send()

Set MyEmailSubject = Item.UserProperties.Find("txtEmailSubject")
Set MySendStudent = Item.UserProperties.Find("txtSendStudent")
MyEmailSubject.value = "Round Robin for " & MySendStudent.value

End Function

3. When the form returns to the sender, the form fields that can be
completed by the receiver are still enabled and therefore editable. How can I
stop this?

I did try this within the btnReturn_click() but it failed also.

Set MySubject = Item.UserProperties.Find("txtSubject")
MySubject.enabled = false



"Sue Mosher [MVP-Outlook]" wrote:

The "Send form definition with item" box is an obsolete setting that no
longer has any utility. It should always be unchecked. If it was previously
checked and you unchecked it, you must republish the form.

The value of the MessageClass property determines what form Outlook will use
to display the item. You set the form display name and message class when you
published the form. You can see these message class values for individual
items by adding the Message Class field to a table view.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"Gary Newport" wrote:

Did you make sure that the form was published with the "Send form

definition with item" box on the (Properties) page unchecked?

Have now! Didn't before. What does this mean, please?

Is the button actually named "btnReturn" to match the name of the Click event handler?


Yes. Double checked by yes! )

Does the
item show the MessageClass value of your published custom form, i.e. IPM.Note.Something?


Pardon? Sorry but where is this, what is this and why? Oh I feel like I'm
regressing! )

Have you tried adding MsgBox statements to the code to get a better idea of what's executing?


Have throughout this form. Just would like a response at some time.

I am incredibly grateful for all your help, by the way.

"Sue Mosher [MVP-Outlook]" wrote:

Did you make sure that the form was published with the "Send form definition
with item" box on the (Properties) page unchecked? Is the button actually
named "btnReturn" to match the name of the Click event handler? Does the
item show the MessageClass value of your published custom form, i.e.
IPM.Note.Something? Have you tried adding MsgBox statements to the code to
get a better idea of what's executing?


"Gary Newport" wrote:

Thanks Sue.

However, this still takes me back to my original problem then.

I publish the form to the Organisational Forms Library, I then File New
Choose Form... and select my form. I complete the active elements (the form
is made up of enabled and disabled elements, which I may simply remove) and
then send it to myself (for checking purposes).

The form arrives with the completed fields correct and I am able to add to
the newly enabled fields. However, when I click on the button...nothing.
Diddley squat. Zilch.

I can repeatedly click and nothing happens at all. I'd expect the message to
close and a new message appear (since I was the sender) but... nothing!

Why not? The Network Manager has confirmed that macros are enabled by
default and that I have full, administrative permissions on the library.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Task Form Manipulation Issue jcurcurato Outlook - Using Forms 1 December 1st 06 03:00 AM
Custom Form resize issue VB Outlook - Using Forms 0 May 24th 06 08:34 PM
Outlook and Form Issue Jade Outlook - Using Forms 3 May 1st 06 02:19 AM
issue with opening form sele Outlook - Using Forms 1 March 24th 06 01:29 PM
Having an issue with Check Full Name form Bo Outlook - Using Contacts 1 February 24th 06 01:20 PM


All times are GMT +1. The time now is 11:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.