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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Making frames stay hidden or seen



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old May 2nd 07, 06:00 PM posted to microsoft.public.outlook.program_vba
daphnejean77
external usenet poster
 
Posts: 21
Default Making frames stay hidden or seen

I am using a code to make the correct frames visible or hidden depending on a
checkbox that is checked. So far, the code works on the senders end, but
once I send the email to myself, the frames do not act accordingly. I either
see all the frames or none of them, depending on what I make the visible
status on the properties menu. The code I am using is below - Will someone
please tell me what I am missing or why this won't work and how to fix it?

Sub Item_CustomPropertyChange(ByVal Name)
Select Case Name
Case "ITTicketVisible"
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("Message")
Set Frame4 = myPage1.Controls("Frame4")
Frame4.Visible = Item.UserProperties("ITTicketVisible")
End Select
Select Case Name
Case "ReturnResponseVisible"
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("Message")
Set Frame3 = myPage1.Controls("Frame3")
Frame3.Visible = Item.UserProperties("ReturnResponseVisible")
End Select
Select Case Name
Case "LockoutResponseVisible"
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("Message")
Set Frame2 = myPage1.Controls("Frame2")
Frame2.Visible = Item.UserProperties("LockoutResponseVisible")
End Select
End Sub

Function Item_Open()
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("Message")
Set Frame1 = myPage1.Controls("Frame1")
Frame1.Visible = Item.UserProperties("ITTicketVisible")
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("Message")
Set Frame2 = myPage1.Controls("Frame2")
Frame2.Visible = Item.UserProperties("ReturnResponseVisible")
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("Message")
Set Frame3 = myPage1.Controls("Frame3")
Frame3.Visible = Item.UserProperties("LockoutResponseVisible")
End Function
 




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
making frames dissapear using checkboxes daphnejean77 Outlook - Using Forms 23 May 1st 07 05:20 PM
MsgBox Hidden Lionel H Outlook and VBA 3 April 10th 07 05:26 PM
web page calendar with frames Liz Outlook - Calandaring 0 June 4th 06 04:11 AM
Question on frames and msgbox Jade Outlook - Using Forms 4 April 26th 06 04:12 AM
Hidden reminders? andersmi Outlook - Calandaring 5 March 20th 06 08:15 PM


All times are GMT +1. The time now is 08:42 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.