Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-28-2024, 06:42 PM
hh vba hh vba is offline Save word document with a new version number using VBA Windows 11 Save word document with a new version number using VBA Office 2021
Novice
Save word document with a new version number using VBA
 
Join Date: Aug 2024
Posts: 4
hh vba is on a distinguished road
Default Save word document with a new version number using VBA

Hi everyone



I would like to create a macro using Word VBA to save a new version of the document I am working on.

If it is a new document, that hasn't yet been saved, I would like an input box to ask for a name for the file.

The document should then be saved with that file name and add a version number (e.g. V1.0) and the current date (in the format dd.mm.yyyy).

It should look like "Test - V1.0 - 01.01.24".

The user should be prompted to select a folder to save the document.

If the document already has been saved and named, I would like to be able to:

(a) save a minor version update with the version number increasing by 0.1 and to update the date e.g. "Test - V1.1 - 02.01.24"; and

(b) save a major version update with the version number increasing to the next whole number and to update the date e.g. "Test - V2.0 - 03.01.24".

The document should save into the existing folder in that format.

Does anyone know how to achieve that?

I've been trying all morning by searching forums and getting ideas from Copilot but haven't been able to figure it out.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I recover a word document that was 'Saved-over' with another (old) version of same document? Mrsolace Word 2 09-10-2021 10:50 AM
Save document as new version with specific format tanko Word VBA 4 04-05-2021 08:06 PM
Save word document with a new version number using VBA Version number from document filename via field code palanski Word 3 10-15-2014 01:54 PM
Version number for Word document, automated by VCS lblythen Word 4 04-08-2014 11:24 PM
Save word document with a new version number using VBA Word fails to save backup of previous version of saved document musawwir Word 1 11-05-2012 05:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft