Welcome to JustAnswer. My name is XXXXX XXXXX I will be assisting you today. Please do not rate this session until it has been completed.
Are you asking how to replicate that functionality in your own code? Or a shortcut to activate that function? I'm not exactly sure what you're asking for.
Sorry, I thought the question was going to Richard, who has been helping me recently. Here is the scenario, I have a spreadsheet open, that has a button control "Save as". I need to have the button perform a command, that opens the "Save as" dialogue box, but instead of the default path being, where the file was originated, I need to specify a file folder on my server, where I want the spreadsheet saved. Does that make any more sense?
I do not have the code written for this command, so if I am understanding your question, I am looking for the shortcut to activate the button.
Yes, that does make perfect sense. I can give you the code, but seeing that Richard has been helping you, I would prefer to let him have your question unless he opts out. Is that okay with you?
That would be great, thank you.
No problem at all. Take care. And if Richard needs to opt out for any reason, I'll be happy to take over for him.
Do I need to do anything on my end, or will the question be reassigned, so he will pick up where you and I have left it?
No need for you to do anything. He will pick it up at his end and you will get an email as soon as he does.
I'm Rachel, and I’m a moderator for this topic. I sent your requested professional a message to follow up with you here, when they are back online.
If I can help further, please let me know. Thank you for your continued patience.
The code opens up the correct folder, where I want to save to, but I need to keep the same file name, as originally opened. The code provided changes the name to whatever I put in quotations.
I am not explaining very well. Let me try again:
Scenario: I open a file named: "Estimate_08272013.xlsm" from a folder on my local drive.
I make the necessary changes to the file, and then click on the command button_142
What I am looking for is:
1) I need to save it in a different folder, on my server - ***The code provided is doing this part**
2) I need the filename to be the same as the original "Estimate_08272013.xlsm" - ***The code as written, is currently changing the name - to a variable name, not the desired result***
Sorry to bother you again, on this question, but I just noticed that this is not actually saving the file. When I click on the control button, it does open the "Save as" dialoque box, and has the proper name in the file name box, but when I click "Save" it closes the dialoque box, but is not saving the file, to the specified folder, and/or any other folder, for that matter. I have checked to ensure it was not saving to a temp folder, by chance.
Yes, if you will send me the link, again. Do you want me to upload the excel file?
File No. 522060
Its ok, I found it
Use this version please
Attachments are only available to registered users.
Richard, that code works, but I have realized a different issue with the code. As mentioned above, in this thread, the user needs to be able to open an existing file (example: 10013_Joe_Doe.xltm) and then click on the control button #142 which opens the "Save As" dialoque box, and the default file name, remains the same 10013_Joe_Doe.xltm.
As the code is currently written, that works, but what the user needs to be able to do, is modify the file name, by only changing the number associated with it (ie. 10013), they would change the file to 13157_Joe_Doe.xltm for example. As the code is written, it does not allow you to modify that name.
I have attached a flow chart of how the user would open the template file, modify it and save it as a quote, and then open the quote file, and modify it, click on the control button #142, and change the number on the file name, and save it in the desired file folder. Hope this makes sense, and is possible. Thanks
Richard I change the code, but receive a runtime error '1004, I have attached the screen shots below. Also, once I click on the control button, the first dialoque that comes up, is that "you cannot save a VB Project in a macro-free workbook" I noticed that the file extensions within the code, show .xlsm. I need to maintain the macro enabled workbook, when the user saves the file, but I do not want it saved as a macro-enabled template file.