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

Custom form - hitting 'next item' button hangs Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 19th 10, 03:03 PM posted to microsoft.public.outlook.program_forms
Alexey Titov
external usenet poster
 
Posts: 10
Default Custom form - hitting 'next item' button hangs Outlook

Hi

I have a custom form with an ActiveX control, published in a public folder -
not 'Organizational Forms Library' though, don't have access to it.
I also made a VBA code to import contacts from Excel list to Outlook - this
works fine, all controls work and newly created contacts do not become
one-off.
But when I click the blue 'Next Item' and 'Previous Item' buttons in Outlook
toolbar - Outlook stops responding.
Can any1 please tell me whats going on with it?

TIA


Ads
  #2  
Old April 20th 10, 01:21 AM posted to microsoft.public.outlook.program_forms
Alexey Titov
external usenet poster
 
Posts: 10
Default Custom form - hitting 'next item' button hangs Outlook

I suspect the problem is in my open code

Sub Item_Open()
'Get form's Inspector and Page
Set oInspector = Item.GetInspector
Set oPageGeneral = oInspector.ModifiedFormPages("General")
End Sub

Tried this

Sub Item_Close()
Set oPageGeneral = Nothing
'oInspector.Close 1 - causes an error
Set oInspector = Nothing
End Sub

- it didn't help. Might be something I missed?


  #3  
Old April 22nd 10, 02:54 PM posted to microsoft.public.outlook.program_forms
Alexey Titov
external usenet poster
 
Posts: 10
Default Custom form - hitting 'next item' button hangs Outlook

That was a really really wierd problem

I actually have more code in that form.
It was strange that if I need to hide a control - for some I may use
Visible=false, for others - only Width=0,Height=0 or form will become
one-off
Now this problem was even more strange - I have two Frames, one with
ActiveXCalendar and other with MSOutlookView control
When setting width/height = 0 to frames - both worked as it should, but when
hitting 'next item' on the toolbar - Outlook stopped responding.
So found out that for a Frame containing ActiveXCalendar - I may use
Width/Height=0, but for a frame containing MSOutlookView - only
Visible=false.

Really wierd


"Alexey Titov" wrote in message
...
I suspect the problem is in my open code

Sub Item_Open()
'Get form's Inspector and Page
Set oInspector = Item.GetInspector
Set oPageGeneral = oInspector.ModifiedFormPages("General")
End Sub

Tried this

Sub Item_Close()
Set oPageGeneral = Nothing
'oInspector.Close 1 - causes an error
Set oInspector = Nothing
End Sub

- it didn't help. Might be something I missed?




 




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
Is there a way to make a clear button on custom form? back2ict Outlook - Using Forms 0 March 23rd 10 10:06 PM
Button to custom form Uncle Vito Outlook - Using Forms 3 March 3rd 07 03:06 PM
How to add a button to a custom form with vbscript Robert Lindermeier - Your-Admin eK Outlook - Using Forms 3 February 26th 07 05:02 PM
custom button not appearing when a mail item is opened Pankaj Add-ins for Outlook 1 January 31st 07 04:05 PM
custom button not appearing when a mail item is opened Pankaj Add-ins for Outlook 0 January 31st 07 07:23 AM


All times are GMT +1. The time now is 11:49 AM.


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.