I am trying to parse out part of a file path where my excel file is stored using a VBA function.
My file path looks something like this: \\ServerName\GroupA\GroupB\2011\08-01\Name\B.Folder\Summary.xls
The function needs to keep only this part of the file path: \\ServerName\GroupA\GroupB\2011\08-01\Name\
Not really sure where to start on this problem. Seen a few ways to parse the file name from a file path but not a different section.
My intent is to change the end of the original file path from where my Summary.xls file is saved up one folder, over, and then down two more. Basically I want to take the parsed path the funtcion returns and add two more file locations down.
Anyone have a possible solution?
Thanks!
My file path looks something like this: \\ServerName\GroupA\GroupB\2011\08-01\Name\B.Folder\Summary.xls
The function needs to keep only this part of the file path: \\ServerName\GroupA\GroupB\2011\08-01\Name\
Not really sure where to start on this problem. Seen a few ways to parse the file name from a file path but not a different section.
My intent is to change the end of the original file path from where my Summary.xls file is saved up one folder, over, and then down two more. Basically I want to take the parsed path the funtcion returns and add two more file locations down.
Anyone have a possible solution?
Thanks!