Hi All,
I have been searching for the past few hours and trying a multitude of different items for such a simple task and its just not playing ball.
What i want to do is the following
I have a cell named ListingFolder - the contents of cell is a formula which displays the directory name i want to create its a simple "C:\ & B1 & B2" to get me the folder name i want created.
1. When trying to use MkDir with that value as a string it doesnt create the folder, so i have to manually specify in the formula
But im hoping to get it so it would just read the name of the cell so the spreadsheet can be dynamic and not require people to edit items in vba
The second part of the macro what i need it to do is to create a Hyperlink to that new Folder in a Cell
I have tried using the Hyperlink Add Method, but it is causing nothing but errors mostly "Path Not Found, even though the folder has been created.
If someone can assist me with fixing the MkDir piece to use a cell value as the file directory, and then help me create a hyperlink to that folder.
I would be forever greatful.
Cheers
G
I have been searching for the past few hours and trying a multitude of different items for such a simple task and its just not playing ball.
What i want to do is the following
I have a cell named ListingFolder - the contents of cell is a formula which displays the directory name i want to create its a simple "C:\ & B1 & B2" to get me the folder name i want created.
1. When trying to use MkDir with that value as a string it doesnt create the folder, so i have to manually specify in the formula
Code:
MkDir "C:\" & [b6] & " " & [b7]
But im hoping to get it so it would just read the name of the cell so the spreadsheet can be dynamic and not require people to edit items in vba
The second part of the macro what i need it to do is to create a Hyperlink to that new Folder in a Cell
I have tried using the Hyperlink Add Method, but it is causing nothing but errors mostly "Path Not Found, even though the folder has been created.
If someone can assist me with fixing the MkDir piece to use a cell value as the file directory, and then help me create a hyperlink to that folder.
I would be forever greatful.
Cheers
G