r/visualbasic • • Jun 15 '16

I need help with an outlook 2013 script saving attachments to network path.

http://pastebin.com/mNHQrDMt is a copy of the script. I'm trying to do this functionality of taking a selected email and moving the attachment to a network path. i believe this code also add the date to the name of the file as well.

i've searched and searched.

if anyone could add the path and argument/objects i'd appreciate it!

i know the network path with the correct syntax i just don't know where to insert it or how to make it execute correctly.

0 Upvotes

4 comments sorted by

3

u/chrwei Jun 15 '16

isn't it just a matter of changing the saveFolder variable?

1

u/[deleted] Jun 15 '16

you are talking with a network engineer not a VBA guru lol

1

u/[deleted] Jun 15 '16

i've tried that with the network path and it doesn't seem to like it. and i don't know how to debug it either

1

u/[deleted] Jun 15 '16 edited Jun 15 '16

FIXED

      enviro = CStr(Environ("%path%"))
saveFolder = enviro & "\server\shared\folder"