I am trying to save a file automatically with a macro. the idea is to
•look at the location it is located in
•see if the folder exists
•if it does, save the document in that folder
•if it does not,create the folder then save the document in the folder

I have the proper coding to make this work on my local computer. That coding is:

Please Login or Register  to view this content.
Now I am changing the location to http://ati-sharepoint:1235/sites/**...g Master/test/

I am able to get the second part of the function to work (the part that actually saves) but not the check to see if folder exists part.

the part that is not working is underlined.

Please Login or Register  to view this content.
Can someone help me get the red part to work? I feel like I am just missing syntax. I am hoping it is possible since the black part works find by itself.