My Assistant
![]()
Custom Search
|
![]() ![]() |
![]() |
![]() Post#1 | |
Posts: 1,175 Joined: 1-December 12 ![]() | I'm using a variant (varFilePaths) to store the file paths of files a user selects from a file picker. I want to attach each file to an Outlook email. If I can tell how many files are contained in the string varFilePaths then I could use a for next statement to attach each file to the email. Is there a way to do this? Thanks |
![]() Post#2 | |
![]() UA Moderator Posts: 76,821 Joined: 19-June 07 From: SunnySandyEggo ![]() | Hi about? NoOfFiles = Ubound(SplitArrayName)-1 -------------------- Just my 2 cents... "And if I claim to be a wise man, it surely means that I don't know" - Kansas Access Website | Access Blog | Email |
![]() Post#3 | |
Posts: 3,364 Joined: 27-February 09 ![]() | For a = LBound(arrayX()) to UBound(ArrayX()) olkMsg.Attachments.Add(arrayX(a)) Next a |
![]() Post#4 | |
Posts: 1,175 Joined: 1-December 12 ![]() | Thanks guys those ideas worked perfect! |
![]() Post#5 | |
![]() UA Moderator Posts: 76,821 Joined: 19-June 07 From: SunnySandyEggo ![]() | You're welcome. Good luck with your project. -------------------- Just my 2 cents... "And if I claim to be a wise man, it surely means that I don't know" - Kansas Access Website | Access Blog | Email |
![]()
Custom Search
|
![]() | Search Top Lo-Fi | 7th December 2019 - 04:21 PM |