I'm very confused now. What object represents the new task that your code creates? How is running code on a form related to creating that new task?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Oskar Vaia" wrote in message ...
Hi Sue,
thx for the tip. I can resolve the problem with the move-method. ;-)
But one question:
My personalized Outlook-form starts by click a button (VB-Script) a
vb.net-application.
Here the VB-Script-code:
---
sub commandbutton6_click()
Dim CB5Caption
CB5Source = 1
Set MB = CreateObject("InkassiOutlookTools.WordFunction") ' this is
my vb.net-application
call MB.Mahnbrieferstellung()
msgbox "OK"
CB5Source = 0
Item.Close olSave
end sub
---
In this application then i use the move-method. This works fine.
After the vb.net-application have finished his work the vb-script-code of
the form should finished his work.
But nothing happens. Could it be, that the move-method in my
vb.net-application automatically closes my outlook-item?
bye
Oskar