Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Attachment Array?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="hlock, post: 13671765"] I'm making progress, but my (z) numbers aren't increasing with the addition of attachments: Dim att As Outlook.Attachment Dim z As Integer Dim attfile As String 'For z = 1 To lngCount z = 1 For Each att In objAttachments attfile = att.filename attfile = Replace(attfile, " ", "_") attfile = tempdir & "\" & attfile Print #fileNum, "File" & (z + 1) & "=" & attfile Print #fileNum, "Desc" & (z + 1) & "=" & "This is the attachment#" & (z) Next att I'm getting: File2=C:\temp\outlookimport\AdjusterReport.pdf Desc2=This is the attachment#1 File2=C:\temp\outlookimport\AdjusterPhotos.pdf Desc2=This is the attachment#1 How do I get the (z) numbers to increase? Thanks!!! [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Attachment Array?
Top