PC Review


Reply
Thread Tools Rate Thread

Re: Outlook Attachments - open with code

 
 
Michael Bauer
Guest
Posts: n/a
 
      15th Nov 2005
Am Tue, 8 Nov 2005 17:07:39 +0100 schrieb steve:

Steve, how do you call the method?

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


> I have utilized code to save attachments and remove from an Outlook
> e-mail message - Michael Bauer posted code in this forum to open
> attachments, which is what I want to do, and I posted it in my VB
> Editor, but nothing happened.
>
> ------------------------------------------------------------------------
> 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

 
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 outlook attachments with VBA code ewan7279 Microsoft Excel Programming 4 5th Aug 2009 03:55 PM
I cannot open outlook attachments, but can open other types Mattco Microsoft Outlook Discussion 2 8th Mar 2008 06:36 AM
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
Re: Open Attachments using code Michael Bauer Microsoft Outlook VBA Programming 0 4th Nov 2005 07:25 AM
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 02:34 PM.