PC Review


Reply
Thread Tools Rate Thread

Re: Open Attachments using code

 
 
Michael Bauer
Guest
Posts: n/a
 
      4th Nov 2005
Am Fri, 4 Nov 2005 00:22:27 +0100 schrieb steve:

Steve, you can use ShellExecute to open files for which there´s an
application available on your computer.


Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_MAXIMIZE = 3
Const SW_MINIMIZE = 6
Const SW_NORMAL = 1

Public Sub OpenFile(sFile As String)
ShellExecute 0, "open", sFile, vbNullString, vbNullString, SW_NORMAL
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


> Is there any code to open attachments ? I use a code block to SAVE
> attachments to folders, but haven't found the code to open and view
> attachments
>
> Steve

 
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
Saving Emails with Attachments - Can't Open Attachments Giovanna Microsoft Outlook Discussion 12 28th Oct 2009 09:23 PM
Attachments will not open for the recipient. They arrive in code. =?Utf-8?B?ZWluZWtsZWluZWpheno=?= Microsoft Outlook Installation 1 14th Mar 2007 06:42 PM
i can't open my attachments, even the word attachments =?Utf-8?B?bW9oYW1lZCBhdHR5YQ==?= Microsoft Outlook Discussion 4 16th Nov 2005 08:57 AM
Re: Outlook Attachments - open with code Michael Bauer Microsoft Outlook VBA Programming 0 15th Nov 2005 07:52 PM
VBA code to open attachments - outlook Steven R via AccessMonster.com Microsoft Access Form Coding 0 6th Oct 2005 06:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 PM.