|
-
May 29th, 2005, 05:55 AM
#1
Thread Starter
Member
display error
hi
getting "a dialog box is open.Close it and try again" , while running the code :
Sub CreateFromTemplate()
Dim myOlApp As Outlook.Application
Dim MyItem As Outlook.MailItem
Set myOlApp = CreateObject("Outlook.Application")
Set MyItem = myOlApp.CreateItemFromTemplate("C:\statusrep.oft")
MyItem.Display
End Sub
the error occurs on .Display .
how should i fix it, or there is another way to load/show/display my template form?
10x
-
May 29th, 2005, 06:14 AM
#2
Re: display error
 Originally Posted by nastya
hi
getting "a dialog box is open.Close it and try again" , while running the code :
Sub CreateFromTemplate()
Dim myOlApp As Outlook.Application
Dim MyItem As Outlook.MailItem
Set myOlApp = CreateObject("Outlook.Application")
Set MyItem = myOlApp.CreateItemFromTemplate("C:\statusrep.oft")
MyItem.Display
End Sub
the error occurs on .Display .
how should i fix it, or there is another way to load/show/display my template form?
10x
Well, you could try myOlApp.Visible = True. If that does not work then can you tell me the name of the reference so, I cna add it and try it myself?
Cheers,
RyanJ
-
May 31st, 2005, 03:58 AM
#3
Re: display error
what is the dialogbox that is open?
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|