daniels012
Well-known Member
- Joined
- Jan 13, 2005
- Messages
- 5,219
I need to hit a button. It then saves the file with the name I choose to a directory that could be different on each different computer, but the last part of the path is always the same "\dropbox\clients\".
Is this possible to find the wildcard of a path using code?
Something like:
DBPath = ?? Whatever wildcard code we can create
myFileName = Worksheets("Estimating").Range("A10").Value & ".xls"
Even if It could bring up the dialog box to save the file, that would be great. Then they can HIT ok to make sure it is going to the right place.
Thank You,
Michael D
Is this possible to find the wildcard of a path using code?
Something like:
Code:
If Dir(DBPath, vbDirectory) <> "" Then
ActiveWorkbook.SaveAs DBPath & myFileName
myFileName = Worksheets("Estimating").Range("A10").Value & ".xls"
Even if It could bring up the dialog box to save the file, that would be great. Then they can HIT ok to make sure it is going to the right place.
Thank You,
Michael D