LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Attaching files to emails using a wildcard

To Whom it may concern,

I am using an Excel 2003 marco to create a number of emails, with attached
files. The files I am attaching follow a "format", are CSV type, and are
unique to the folder, but are not sequential, eg., CML_1234567.csv. I've
tried a few versions of the following code (without success);
.Attachments.Add (PathtoFile & strFileA & "CML" & "*" & ".csv")
&
.Attachments.Add (PathtoFile & strFileA & "CML" & "*.csv")

How can I use a "Wildcard" to select a file for attachment to an email?



TIA
Andrew from Telstra



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
attaching toolbars to files Papa Jonah Excel Programming 4 October 15th 08 06:17 PM
Attaching Emails in Outlook Message Format Marie FP[_2_] Excel Discussion (Misc queries) 1 June 23rd 08 07:01 PM
Attaching PDF files Neil Meehan Excel Discussion (Misc queries) 0 September 23rd 06 04:29 AM
Truble Attaching PDF Files Chaplain Doug Excel Programming 0 September 13th 05 02:36 PM
Attaching Files to Emails Ben Excel Programming 1 November 18th 04 01:52 AM


All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"