View Single Post
  #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