PC Review


Reply
Thread Tools Rate Thread

Custom form - hitting 'next item' button hangs Outlook

 
 
Alexey Titov
Guest
Posts: n/a
 
      19th Apr 2010
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


 
Reply With Quote
 
 
 
 
Alexey Titov
Guest
Posts: n/a
 
      20th Apr 2010
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?


 
Reply With Quote
 
Alexey Titov
Guest
Posts: n/a
 
      22nd Apr 2010
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Custom Form Mapi logon hangs, no errors Options ken_wilsonii@hotmail.com Microsoft Outlook Discussion 1 23rd Jan 2008 12:50 AM
hitting reply hangs outlook? =?Utf-8?B?Y2hlcnls?= Microsoft Outlook Discussion 7 30th Nov 2005 08:55 PM
Outlook 2003 custom form item reference number Colin McGerty Microsoft Outlook VBA Programming 1 12th Aug 2004 02:58 PM
Getting data from standard Outlook item into custom form Laura Microsoft Outlook Form Programming 1 9th Jul 2004 04:17 AM
I create a menu item using VB, within a custom contacts form. I do not want the item to be visible in other forms or views. How do I do this?? Tore Microsoft Outlook Form Programming 0 10th Mar 2004 01:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:18 PM.