Hello there,
This line of code that you altered is incorrect.
It should be the full filepath that you are trying to copy over. Please open the file that you are copying over and in a blank cell type =CELL("filename"). The outcome will be something like this:
C:\Documents and Settings\rvasquez\My Documents\Example Spreadsheets\[vangur1.xlsm]Sheet1
You'll only want this portion of it:
C:\Documents and Settings\rvasquez\My Documents\Example Spreadsheets\vangur1.xlsm
Using the example file path above your code would look like this:
For the second instance of the line of code you change:
This should be a path to a folder. So locate the folder you want to copy to the selected folder from the dialog on your computer. Right click on the folder on select the Properties option. Copy the Location and then add the folder name to the end.
For example I have folder on my computer that's called Test. When I view the Properties it states the location is C:\Documents and Settings\rvasquez\Desktop. So my code would look like this
Finally please remove the two functions that you inserted into a Module and merely paste them below your Private Sub CopyFolder_Click() after the End Sub.
Let me know if this changes anything.
Bookmarks