Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

MsOf10 [Outlook]Copy cells from xlsx attachment to first empty row of a local workbook

$
0
0
Hi, I am looking to automate a process I do many times a day and have very low experience in VB.

Each day I receive multiple emails with a single sheet .xlsx attachment.
Attachment names and the sheet name vary on each email.
I can set up a rule easy enough to determine which emails I need and file them and run a script.

What I want the script to do is:
Open the attachment
copy range a3:n10
open my Masterfile.xlsm and select sheet "Imports"
Paste the copied range into the first empty cell in column A
Then close the xl files.

Even better would be if the data could paste into the first empty row of different sheets within masterfile.xlsm
where the sheet could be determined by part of the subject line, or by the sender.
Otherwise just into imports and i'll try script something in excel to split them up.

I have found a few scripts that do bits of this, which I have tried to stick together, but I have messed it all up beyond recognition and think it would be best to start over.
Could anyone give me some guidance here please?

Thanks if you can help!

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>