I am trying to create a macro for a "save as" button that will determine the file name based on a cell value (E4) and the location to save it based on another cell value (G4). However cell (G4) only contains the first 6 characters of the sub folder name. I can't change the names of the folders but the first 6 characters are always unique and known while the rest of the folder name is unknown. Having to search for and input the entire folder name would require more work than just a regular file/save as/browse/…
Example (1): E4=”filename” & G4=”654321” and I need the file "filename.xlsm" to be saved in a folder "W:\0 3 BIN SYSTEM\654321 some unknown stuff here\"
Example (2): E4=”otherfilename” & G4=”123456” and I need the file "otherfilename.xlsm" to be saved in a folder "W:\0 3 BIN SYSTEM\123456 different unknown stuff here\"
Here is what I currently have. It works just fine if I have the entire folder name in G4:
[I]
Bookmarks