View Full Version : [SLEEPER:] VBA code to Change file name before saving
PinkFloyd
11-29-2023, 11:45 AM
Hello, I am new to this forum and to VBA. I would appreciate if you could write a code to change file name before saving? The file name has to be in format of "Entity number_month_year"
Aussiebear
11-29-2023, 01:38 PM
Since you are saving only one file, why not use the tools that Excel has kindly already provided?
jdelano
11-30-2023, 02:46 AM
As an add-on to what Assuiebear asked.
Where would these pieces of information be coming from?
When would this rename have to occur?
Would adding a button for the user to click, instead of the regular Excel save button, work?
Much more information is needed to try to assist you.
Here is some information that should help you understand what you're asking for:
Excel Add VBA Button - Automate Excel (https://www.automateexcel.com/vba/add-button/)
Get Cell Value in Excel VBA (Step by Step Examples) (wallstreetmojo.com) (https://www.wallstreetmojo.com/get-cell-value-in-excel-vba/)
VBA Save As | How to use Save As Method in VBA Excel? (wallstreetmojo.com) (https://www.wallstreetmojo.com/vba-save-as/)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.