Тёмный

VBA to download email attachments from Outlook with multi Criteria. Real-life Automation Project 

VBA A2Z
Подписаться 51 тыс.
Просмотров 33 тыс.
50% 1

Real-life VBA Project to extract an attachment from outlook to folders
Highlights:
~Design UI for inputs
~Connect to outlook
~Activate session
~Navigate Outlook folders
~Perform parameterized Query
~Download Attachments
~Manupuate data
Subscribe, Like, and Comment. 🙏Thanks for watching.
You can now support by buying any of the Projects or Source Code.
📥Downloads: pamaitech.com/downloads/
👍 Support: paypal.me/pamaitech
✉️ Contact: contact@pamaitech.com
📌What to watch next:
Playlist: ru-vid.complaylists
Videos: ru-vid.comvideos
#VbaA2z

Наука

Опубликовано:

 

12 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 175   
@sadafmfdasfasdewrl5768
@sadafmfdasfasdewrl5768 2 года назад
Hello Pamai, Never thought I'd leave a comment on such a video, I usually grab what I look for to help myself, but this was the only method that worked for me amongst many. God bless!
@VBAA2Z
@VBAA2Z 2 года назад
Thanks for sharing!!
@bhakthasingh8198
@bhakthasingh8198 3 года назад
Hello Pamai, It is a top-notch tutorial. Thank you so much. No waste of time. Every step is carefully programmed to make the listener understand and move from the well-learned previous step. You are great! May God bless you.
@VBAA2Z
@VBAA2Z 3 года назад
Glad it was helpful! thanks and God bless you too.
@vijayaraghavan1969
@vijayaraghavan1969 3 года назад
very neatly explained, step by step with error handling Thanks for splendid class
@VBAA2Z
@VBAA2Z 3 года назад
Glad it was helpful! thanks for watching.
@busyshah
@busyshah 2 года назад
You are superb and you rock. Everything is so crisp and clear. I have subscribed you already and wish you all the best.
@VBAA2Z
@VBAA2Z 2 года назад
Thank you so much 🙂
@hemantkumar-cn1gz
@hemantkumar-cn1gz 3 года назад
Great tutorial, the most important topic which is explained very well step by step
@VBAA2Z
@VBAA2Z 3 года назад
Glad it was helpful! Thanks for watching
@linnick9235
@linnick9235 4 года назад
Thanks a lot. This was something I was looking for. Very informative video thanks again
@VBAA2Z
@VBAA2Z 4 года назад
Glad it was helpful!
@nicholi8933
@nicholi8933 2 года назад
This is very impressive. Thank you so much it has been very helpful.
@VBAA2Z
@VBAA2Z 2 года назад
You're very welcome!
@kinga334
@kinga334 4 года назад
Thank you. I found it very informative.
@VBAA2Z
@VBAA2Z 4 года назад
You are welcome!
@scrop3000
@scrop3000 4 года назад
Thanks man, it was the thing I was looking for, thanks a lot
@VBAA2Z
@VBAA2Z 4 года назад
Glad I could help
@tinybubbles0129
@tinybubbles0129 Год назад
Great job with the tutorial Sir! 👏👏👏
@VBAA2Z
@VBAA2Z Год назад
Thank you! 👍
@holieh5301
@holieh5301 4 года назад
Thank you sir for very informative detailed tut. Please upload the project or share via email. Keep up good work!
@VBAA2Z
@VBAA2Z 4 года назад
The Project has been published to blog. Please check the link below. vbaa2z.blogspot.com/2020/03/vba-to-download-email-attachments-from.html
@skywalker0603
@skywalker0603 Год назад
Genau das, was ich brauche !! That's exactly what I need !😁
@VBAA2Z
@VBAA2Z Год назад
Glad it was helpful!
@abaiqbal
@abaiqbal Год назад
Thank you so much Pamai. I will try the code and hope will work. I'm still new in VB. Good luck and God bless you.
@VBAA2Z
@VBAA2Z Год назад
You're most welcome. God bless you too
@willemwever3947
@willemwever3947 3 года назад
Thank you for your tutorial, very helpful.
@VBAA2Z
@VBAA2Z 3 года назад
You are welcome!
@VBAA2Z
@VBAA2Z 3 года назад
Do not forget to like and subscribe too! thanks for your support!
@saxman678
@saxman678 Год назад
This is really good. Thank you so much.
@VBAA2Z
@VBAA2Z Год назад
You're very welcome!
@undercovergoku
@undercovergoku 2 года назад
Mind blown bro... You explained in most simple way... Surprised to see your subscriber count... Love from India
@VBAA2Z
@VBAA2Z 2 года назад
Thanks a ton!
@undercovergoku
@undercovergoku 2 года назад
I m trying to connect to shared mailbox but it's giving me error
@undercovergoku
@undercovergoku 2 года назад
An attempted operation failed. An object couldn't be found Is working perfectly fine with my personal email but not working when I give shared email box reference
@sksanthosh111
@sksanthosh111 Год назад
Great tutorial my friend. 😍
@VBAA2Z
@VBAA2Z Год назад
Thanks so much
@loganathanganesan8124
@loganathanganesan8124 9 месяцев назад
Thank you brother
@VBAA2Z
@VBAA2Z 8 месяцев назад
Any time
@TheJaebeomPark
@TheJaebeomPark 3 года назад
You are so good
@VBAA2Z
@VBAA2Z 3 года назад
thanks!
@konqueror07
@konqueror07 2 года назад
Hi Pamai, Excellent video and very logical flow of programming there. I have one question if we receive mails from different people with those common parameters, can we save the attachments in separate folders grouped based on the incoming mail id.
@VBAA2Z
@VBAA2Z 2 года назад
Yes, absolutely. Based on variables you can use below to make folders MkDir "Path here" ' Make new directory or folder.
@ArcheryJackson
@ArcheryJackson Год назад
Wonderful video! I’m using it for my job and love it. But one question, is there a way to have the code wait for ATP Scanning? I have the application waiting for the time can vary drastically. Thanks so much!
@rakhisaxena4352
@rakhisaxena4352 3 года назад
SuppppperLike!!!!
@VBAA2Z
@VBAA2Z 3 года назад
Thank you! Cheers!
@asifiqbalchowdhury3781
@asifiqbalchowdhury3781 2 года назад
Hi, this is an incredible tutorial. Plz also let us know how it can be organized in local drive folders based on sender email address
@juanrojas-fn3bw
@juanrojas-fn3bw Год назад
Use Power automate to move the files in realTime.
@levelupexcelskill
@levelupexcelskill 4 года назад
Many thanks for this video you teach excellent. Could you please make a video to make addins because my ribbonx not working and I don't know how to use custom UI
@VBAA2Z
@VBAA2Z 4 года назад
Sanjeev, thanks for your compliment. I'll be covering this topic in detail ASAP.
@14mastermo
@14mastermo 8 месяцев назад
Amazing and thank you so much. It really helped me a lot. Just wanted a small assitance - how can i put a condition to check the attachment type like pdf or txt. I tried doing that but struggling to get one.
@VBAA2Z
@VBAA2Z 7 месяцев назад
this series covers all these topics. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ji2jHz8YPq8.html
@kashifkhanspecial
@kashifkhanspecial 2 года назад
Thanks for this knowledgeable tutorial, I have one question, how can I fetch the value from the property/column "Mention" from a mail? like we fetch Sender, Subject etc. Thanks in advance for your help. Thanks Kashif
@VBAA2Z
@VBAA2Z 2 года назад
I haven't tried that yet. Please try stackoverflow
@marcelofreitas4593
@marcelofreitas4593 3 года назад
Hello! How are you? Thanks for sharing! Just a question: my attachment (an Excel file) is encapsulated inside a ZIP file. Is there a way to automatize the file's extraction from the zip? After the file has been put inside a folder, I'll performe others tasks with a VBA code to extract information from the file to another Excel file. I hope you can help me. Thanks a lot!
@VBAA2Z
@VBAA2Z 3 года назад
yes there are windows api to handle zip and extract. I'll include them in coming videos.
@lyndaharrache5442
@lyndaharrache5442 2 года назад
Hello! Thank you so much for this video, tell me please if I can write this program on outlook's VBA directly.if it's possible could you tell me what i have to change please. Thanks for your time Bye
@VBAA2Z
@VBAA2Z 2 года назад
Yes you can! check this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5qcftHAWnZI.html
@saikiranbekkam
@saikiranbekkam 3 года назад
It’s very good, I need more information like , I need to save attachment from the email in particular excel spreadsheet then email and attachment needs to print. Do you have any idea
@VBAA2Z
@VBAA2Z 3 года назад
All you need to know about email automation using VBA ru-vid.com/group/PLo0aMPtFIFDprmb4MBozLAdCn3-1cnnDA
@saikiranbekkam
@saikiranbekkam 3 года назад
Thank you for the link, but it is about how we can send mail using vba, but I need vba for save email attachments in excel spreadsheet tab then mail should be print.
@jayavaradhanjayavaradhan8445
Hello Pamai, thank you for your video. Can you please explain how to rename those files?
@VBAA2Z
@VBAA2Z Год назад
no probs. You can use Name method. Dim oldName, newName oldName = "OLDFILE": newName = "NEWFILE" ' Define file names. Name oldName As newName ' Rename file. oldName = "C:\MYDIR\OLDFILE": newName = "C:\YOURDIR\NEWFILE" Name oldName As newName ' Move and rename file.
@rameshvathare8076
@rameshvathare8076 2 года назад
Thanks for this session..how we can extract outlook attachment with respective members and latest email attachment ( 2 conditions)
@VBAA2Z
@VBAA2Z 2 года назад
Please use the sample in this video to replicate for additional conditions
@abuabou7679
@abuabou7679 3 года назад
Thanks lot it's it is very nice how can we add multiple sender name to download the attachment
@VBAA2Z
@VBAA2Z 3 года назад
not sure I follow
@abuabou7679
@abuabou7679 3 года назад
@@VBAA2Z thank you. Shall I get the code please
@mdbarkatullah8663
@mdbarkatullah8663 3 года назад
Wonderful and clear tutorial. I was trying to use this. it is showing an Microsoft Visual Basic for Applications, Compile error:, User-defined type not defined. It highlights "olApp As Outlook"
@VBAA2Z
@VBAA2Z 3 года назад
did you set reference to Outlook?
@mdbarkatullah8663
@mdbarkatullah8663 3 года назад
@@VBAA2Z No. I am not familiar with that. How do I do that?
@selvan1264
@selvan1264 10 месяцев назад
Thank you for the excellent video. Is there any way to also save each outlook email in local folder? Thank you
@VBAA2Z
@VBAA2Z 10 месяцев назад
You're most welcome!
@selvan1264
@selvan1264 10 месяцев назад
@@VBAA2Z thank you. Let me know if there is any way to save each outlook email in local folder using excel vba? Thank you
@MatusiSK
@MatusiSK 2 года назад
Hi Pamai, will something similar works on daily basis with different outlook folders moving all attachments to specific local or even better sharepoint folder ? Thank very much.
@VBAA2Z
@VBAA2Z 2 года назад
Yes, absolutely. Please reach out to us (to email in video description) if any assistance is needed
@wboyce4603
@wboyce4603 3 года назад
This is very helpful. I have a report that is emailed to me multiple times a day. The attachment file name does not change. Is it possible to save the attachment with the received time?
@VBAA2Z
@VBAA2Z 3 года назад
yes sure check this section ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ji2jHz8YPq8.html olAtt.Filename can be manipulated using receivedtime
@zitomoreno9408
@zitomoreno9408 3 года назад
Great project, I built an richtextbox in excel vba to send email, do you know if is possible to create an email app without use Outlook?
@VBAA2Z
@VBAA2Z 3 года назад
Yes you can send email using CDO library. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-nj8mU3ecwsM.html
@zitomoreno9408
@zitomoreno9408 3 года назад
@@VBAA2Z yes, CDO is just for send mail, i can't import the email in the inbox. Do you know how I can import emails?
@VBAA2Z
@VBAA2Z 3 года назад
I haven't personal tried but check 'Summary' section from below link docs.microsoft.com/en-us/previous-versions/ms978636(v=msdn.10)?redirectedfrom=MSDN
@zitomoreno9408
@zitomoreno9408 3 года назад
@@VBAA2Z thx you so much
@mdbarkatullah8663
@mdbarkatullah8663 3 года назад
Do you have any video on downloading all the attachments from multiple outlook emails in a folder without using excel?
@VBAA2Z
@VBAA2Z 3 года назад
if not Excel try VBA in Word/Outlook/Access or powerpoint.
@KhalilYasser
@KhalilYasser 3 года назад
Thanks a lot for this awesome tutorial. Can you share the code?
@VBAA2Z
@VBAA2Z 3 года назад
To promote code yourself, projects/codes downloads are not available. Please let me know if you're stuck / need help.
@kashifkhanspecial
@kashifkhanspecial 2 года назад
Hi, Thanks for the video tutorial, I hope you are doing good, staying safe & healthy, I have one question regarding outlook mails, can I move all the mails (mails that category is blank) from a outlook folder to another outlook folder at once like copy and paste not through loop, move bulk mails at once, is this possible? if yes? please help me. Like if we do manually then will go to that folder then apply filter then select those filtered mails and drage those mails to another folder, at once we moved all the mails to difference folder. How can we do this through Excel VBA? Please help me to resolve this query. Thanks Kashif
@VBAA2Z
@VBAA2Z 2 года назад
I think it'll be easier to use Outlook rule for this sort of activities even though surely it can be done via VBA
@kashifkhanspecial
@kashifkhanspecial 2 года назад
@@VBAA2Z , Hi can you please help me on this please. Thanks Kashif
@andreeaoprea4347
@andreeaoprea4347 2 года назад
Hello, great video! I have a question...what if I am not the admin, how can I replace this in the code? so simply try to replace [admin] with "my email address"?
@andreeaoprea4347
@andreeaoprea4347 2 года назад
I get the error run time error 424 Object required, even though I chose the Outlook Object from Tools -> References
@VBAA2Z
@VBAA2Z 2 года назад
Admin is just a name or label. You can name it whatever you want
@VBAA2Z
@VBAA2Z 2 года назад
In rare cases, this error occurs when you have a valid object but are attempting to perform an invalid action on the object. For example, you may receive this error if you try to assign a value to a read-only property. Check the object's documentation and make sure the action you are trying to perform is valid docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/object-required-error-424#:~:text=In%20rare%20cases%2C%20this%20error,trying%20to%20perform%20is%20valid.
@bharathkumar.a1040
@bharathkumar.a1040 6 месяцев назад
Hi, could you pls help me to understand on olitem as object and no variables for olmail right ?
@mks123seenu
@mks123seenu 2 года назад
Hello Sir - There is one question in VBA how to capture non-english script langauages, like chinese or some other non-english script languages...is there any variable or system to convert the same
@VBAA2Z
@VBAA2Z 2 года назад
Hello, for that easiest way would be to store the values in range which acts are variable instead of store them in memory.
@mks123seenu
@mks123seenu Год назад
Hello Sir - Hope all Fine, i want to make it automatic or real time download as & when email received into outlook into excel (with automatic next email option to avoid email line duplication). if we put this email trigger into excel vba workbook as event. it will work or not?
@VBAA2Z
@VBAA2Z Год назад
All good, hope you are too. I haven't tried this. Try this instead for reliable solution Trigger VBA code every time a new email is received in Outlook. Build out of box functionality. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5qcftHAWnZI.html
@roguedesign4393
@roguedesign4393 2 года назад
great tutorial, i have a problem though, i have about 4000 mails in the folder, how do i not loop over all the items in the folder?
@VBAA2Z
@VBAA2Z 2 года назад
please check here vbaa2z.blogspot.com/search/label/VBA%20Custom%20Functions
@Cosmicsciences
@Cosmicsciences 2 года назад
Hi can you help how to download only unread file if there is read file will not be downloaded help will be highly appreciated
@VBAA2Z
@VBAA2Z 2 года назад
currently how do you identify if file is read or unread?
@austincrowell1327
@austincrowell1327 2 года назад
For anyone else struggling with this DO NOT USE "&" during the conditional if statements USE "AND". Multiple conditions within the If Statement will not work when trying to include parameters if you utilize "&."
@VBAA2Z
@VBAA2Z 2 года назад
Thanks for that Austin!
@austincrowell1327
@austincrowell1327 2 года назад
@@VBAA2Z thank you for the super helpful tutorial. Gave me a great idea to help me automate a work process!
@VBAA2Z
@VBAA2Z 2 года назад
@@austincrowell1327 glad to hear. Have a good one
@mohammedkhaledhossain7374
@mohammedkhaledhossain7374 4 месяца назад
​@@VBAA2Z If i want the attachmemt that comes in between 7:00am & 8:00am. How will i do that. Because the attachment i need is the one that comes at 7:00am -8.00am. Thanks
@dar3ibousif875
@dar3ibousif875 Месяц назад
please how to export emails from a sender to a floder in hard drive as msg file with vba?
@muharremozcakir1198
@muharremozcakir1198 3 года назад
Hello, I do not have any information about coding. If I ask you, can you help me with outlook vba?
@VBAA2Z
@VBAA2Z 3 года назад
Sure, I'm happy to guide you Please find email address in video description.
@shahidSag
@shahidSag 4 года назад
Hey,is it possible to send emails if there is conditions! Exp: if range ("A4")= "true" then Range ("b4:f6"). select Selection.copy So the .body="good morning" For the above code it's working fine if I change the condition to false it's showing the same good morning I want change that to good evening if range ("A4")= "false" then Range ("b4:f6"). select Selection.copy .body= "good evening"
@VBAA2Z
@VBAA2Z 4 года назад
yes you can.
@shahidSag
@shahidSag 4 года назад
Can you send me code plz on my email shahid.ec@gmail.com
@j.hofer0485
@j.hofer0485 3 года назад
5:43 How do you hide all the other cells?? I guess its a shortcut! what shortcut is it tho??
@VBAA2Z
@VBAA2Z 3 года назад
Ctrl+0 (zero) to Hide Columns.
@j.hofer0485
@j.hofer0485 3 года назад
@@VBAA2Z thx
@kristis61
@kristis61 3 года назад
is it possible to extract from outlook in excel the date received and the date that i replied to an email?
@VBAA2Z
@VBAA2Z 3 года назад
check these properties / method. ReceivedTime SentOn
@VBAA2Z
@VBAA2Z 3 года назад
Check this video as well. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HtyI2rcx0JE.html
@bharath3651
@bharath3651 Год назад
It’s working fine but I’m not able use this for shared mail box . Please help me for this issue
@VBAA2Z
@VBAA2Z Год назад
Try the name of shared mailbox as it appears in Outlook
@axelamoe
@axelamoe 3 года назад
Thank you for this great video, I have a quick question, I tried "If mailitem.ReceivedTime > [Sheet1].[Date].Value & mailitem.SenderEmailAddress = [Sheet1].[fromSender].Value Then" However it does not download the attachments. But if I run the if statements for each alone, it does based on the criteria. Any help? Thank you
@VBAA2Z
@VBAA2Z 3 года назад
Try AND instead of &
@axelamoe
@axelamoe 3 года назад
@@VBAA2Z Thank you for your reply, that worked. Can it be done to look for a keyword in the subject rather then the whole line? I tried with "InStr(mailitem.Subject, [Sheet1].[Subject].Value) 0 Then" to look for "test" for example? but that did not work for me! Thank you again for all the amazing content, it has been very helpful.
@axelamoe
@axelamoe 3 года назад
Also where would you insert "mailitem.delete" to delete the emails that met criteria after attachments have been downloaded? I tried a few locations but it only deletes one or two of the email not all 4.
@VBAA2Z
@VBAA2Z 3 года назад
Great it is working out. to delete simple use Delete method Dim myMail As Outlook.MailItem 'set up myMail object. and critiria that you already specified. myMail.delete Do not forget to subscribe and support the channel. thanks!
@rameshbalami2075
@rameshbalami2075 2 года назад
@@axelamoe i also have the same query...is that responded?
@sinimenon1599
@sinimenon1599 3 года назад
Hi, This tutorial is really helpful but when i am doing name range reference and call it in my code it is throwing me error "run time error 424 Object required
@VBAA2Z
@VBAA2Z 3 года назад
Hi Sini, did you set a reference to Outlook library?
@vloiola310
@vloiola310 2 года назад
Same problem here, I did set the reference as Outlook Library
@joyboyadventures3092
@joyboyadventures3092 Год назад
Hi i have tried the above everything looks fine but the attachment is not getting saved
@VBAA2Z
@VBAA2Z Год назад
make sure the path is correct
@joyboyadventures3092
@joyboyadventures3092 Год назад
@@VBAA2Z worked on it the last day with the in the macro i am able to save with respect to date wanted to customise further to check for time interval within a particular time frame . 1. The subject condition is not working for me when it's just the date condition the files are getting saved abut when the subject condition is included it doesn't save the file
@joyboyadventures3092
@joyboyadventures3092 Год назад
@@VBAA2Z 2. Was working on code to convert and save the pdf as excel not quite able to get it , could you please assist on that part
@WeningWang
@WeningWang Год назад
how to send image in the email body?
@VBAA2Z
@VBAA2Z Год назад
please check here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ji2jHz8YPq8.html
@kendc4019
@kendc4019 Год назад
Hello do you have a code for saving attachment based on email subject??
@VBAA2Z
@VBAA2Z Год назад
try something like this olAtt.SaveAsFile "C:\" & mailitem.subject & ".ext"
@user-fr2tc5je3f
@user-fr2tc5je3f 3 года назад
Do you have a tutorial for gmail attachment?
@VBAA2Z
@VBAA2Z 3 года назад
Adding a Gmail account to Outlook may be simplest way to achieve it. support.microsoft.com/en-us/office/add-a-gmail-account-to-outlook-70191667-9c52-4581-990e-e30318c2c081
@user-fr2tc5je3f
@user-fr2tc5je3f 3 года назад
@@VBAA2Z thanks .. but is there a way to do it directly ..
@shashichittoju
@shashichittoju 3 года назад
how do I rename the file, while downloading the specific folder?
@VBAA2Z
@VBAA2Z 3 года назад
you need to address this part of below line as per your need olAtt.Filename olAtt.SaveAsFile [Admin].[Export_To].Text & olAtt.Filename
@880924355193
@880924355193 2 года назад
@@VBAA2Zit does not work below. any solution? If olAtt.Filename = [Admin].[Attachment_Name] Then olAtt.SaveAsFile [Admin].[Export_To].Text & olAtt.Filename End If
@mrinal106l
@mrinal106l 3 года назад
Team , I am getting object error in admin mailbox line
@VBAA2Z
@VBAA2Z 3 года назад
What value does [Admin].[Mailbox] hold?
@mrinal106l
@mrinal106l 3 года назад
@@VBAA2Z email id
@VBAA2Z
@VBAA2Z 3 года назад
@@mrinal106l update that line with below and see if it works. set olFolder = olNS.Folders(Sheets("Admin").range("Mailbox").value)
@kodumagullakumar1519
@kodumagullakumar1519 3 года назад
Thank you for this coding. I am getting error when I use admin in the coding. Pls help me
@kodumagullakumar1519
@kodumagullakumar1519 3 года назад
I am from Hyderabad
@VBAA2Z
@VBAA2Z 3 года назад
May I know what is the error message you are receiving? Not sure what you mean about Admin?
@kodumagullakumar1519
@kodumagullakumar1519 3 года назад
There is an error as compile error: Variable not defined
@j.hofer0485
@j.hofer0485 3 года назад
Whats the MAPI folder whats that
@VBAA2Z
@VBAA2Z 3 года назад
It represents a Microsoft Outlook folder
@j.hofer0485
@j.hofer0485 3 года назад
@@VBAA2Z so in my customisation i need to write a different folder or still MAPI
@mks123seenu
@mks123seenu 2 года назад
Is it possible to do the same from outlook webemail..?
@VBAA2Z
@VBAA2Z 2 года назад
nope, you'll need Outlook+VBA or alternately program in Office addin platform
@mks123seenu
@mks123seenu 2 года назад
Thanks Sir...I have developed the attached auto-download and filling excel from email received....but problem is...it does not work for additional email id's attachment
@mks123seenu
@mks123seenu 2 года назад
additional email id is attached to primary email id
@mks123seenu
@mks123seenu 2 года назад
In Outlook > Settings > within primary email id > advanced > - from this we want to extract the PDF how can it be connected
@VBAA2Z
@VBAA2Z 2 года назад
You can use olFolderInbox if email is in primary email mailbox
@syednawazmehdi7814
@syednawazmehdi7814 3 года назад
Can you send me the codes used in this tutorial?
@VBAA2Z
@VBAA2Z 3 года назад
Please check link in video description. Thanks for watching.
@raghavshanbhag9308
@raghavshanbhag9308 4 месяца назад
you have worked hard for this video but you hae not recored how it is working
@VBAA2Z
@VBAA2Z 4 месяца назад
good point
@MrAniketsumit
@MrAniketsumit 3 года назад
Black screen not useful for code
@VBAA2Z
@VBAA2Z 3 года назад
Thanks for feedback
@dkeanoo
@dkeanoo Год назад
Hi, I get a runtime error here: Set olFolder = olNS.Folders([Admin].[Mailbox].Text) - it says an object can not be found, but the inbox address is there when I do ?[Admin].[Mailbox].Text in Immediate. I also had the type error instead of this before adding the .Text
@VBAA2Z
@VBAA2Z 7 месяцев назад
make sure the path is correct by manually debug the actual string and not from the excel UI
@kashifkhanspecial
@kashifkhanspecial 2 года назад
Hi, I hope you are doing good and staying safe, I have one question in outlook, in a folder there are multiple mails and in this folder have many mails that have the subject "TestMail_1" and my requirement is that if the mail's subject is "TestMail_1" then I want to move this mail to another folder, and for this I am applying loop in this folder, this loop is not moving all the mails that have the subject "TestMail_1" it is only moving some of the mails not all, I don't know why but it is skipping some mails. For Testing purpose suppose in the source folder have 9 mails with following subject. 1st mail Subject: TestMail_1 2nd mail Subject: TestMail_5 3rd mail Subject: TestMail_1 4th mail Subject: TestMail_4 5th mail Subject: TestMail_2 6th mail Subject: TestMail_1 7th mail Subject: TestMail_1 8th mail Subject: TestMail_1 9th mail Subject: TestMail_1 Code: Set outFolderSource=namespace.Folders("emailaddress").folders("SourceFolder") Set outFolderDestination=namespace.Folders("emailaddress").folders("DestinationFolder") For each outMail in outFolderSource.Items If outMail.Class=olMail Then If Instr(outMail.Subject, "TestMail_1")>0 then outMail.Move outFolderDestination End if End if Next outMail My kind request to you that please help me to resolve this issue. Thanks Kashif
Далее
Почему худеют от Оземпик?
00:37
Просмотров 87 тыс.
Download Attachments From Multiple Emails
14:31
Просмотров 48 тыс.
Intel's CPUs Are Failing, ft. Wendell of Level1 Techs
23:59
12 Tips to Get More Done Using Microsoft Outlook
26:43
How to Work With Emails in Outlook VBA
19:33
Просмотров 19 тыс.