you are welcome
>thank you Sergey - that was an easy fix. works great.
>k
>>Use workaround suggested at
http://msdn.microsoft.com/en-us/library/office/ff861594.aspx>>
>>
>> loMapi = loOutLook.GetNameSpace("MAPI")
>> mailFolder = loMapi.GetDefaultFolder(olFolderInbox)
>> loItem = loOutlook.CreateItem(0)
>>
>>
>>
>>>Whenever vfp generates an email and outlook is NOT open I get an annoying message
>>>blue box appears - choose profile (heading) - with 'outlook' appearing in profile name.
>>>I have ticked the options to select this as default setting but it reappears each time just the same.
>>>Is there something I can add in the coding to force the email program to open without this presistent option appearing.
>>>Here is what I have running currently.
>>>tnx
>>>k
>>>
>>> LOCAL loOutlook, loItem, lnCountAttachments, loMapi
>>> TRY
>>> loOutlook = CREATEOBJECT("outlook.application")
>>> loMapi = loOutLook.GetNameSpace("MAPI")
>>> loMapi.Logon()
>>> loItem = loOutlook.CreateItem(0)
>>>etc......
>>> IF tlOpenEmail
>>> .display()
>>> olNormalWindow = 2
>>>
>>> loInspector = .GetInspector()
>>> loInspector.WindowState = olNormalWindow
>>>ELSE
>>>
>>> .SEND()
>>> ENDIF
>>>
--sb--