Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 03-07-2018, 05:39 PM
eduzs eduzs is offline Looking for a macro to increase a number by 1 in a Word document Windows 10 Looking for a macro to increase a number by 1 in a Word document Office 2010 32bit
Expert
 
Join Date: May 2017
Posts: 262
eduzs is on a distinguished road
Default

You're welcome!


Just a tip: when I assign macros to menu buttons or keyboard shortcut that will be used in specific documents, I like to put a exit line to prevent undesired changes in other documents.
Like this (before any other instruction):

Code:
If activedocument.name<>"My desired document.docx" then exit sub
__________________
Backup your original file before doing any modification.
Reply With Quote
Reply

Tags
macro, word 10



Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase number in cell, based on value in adjacent cell scottyb Excel 3 02-02-2017 03:51 AM
How to find number of coma and then add that number of rows in word using macro? PRA007 Word VBA 7 05-27-2015 10:45 PM
Looking for a macro to increase a number by 1 in a Word document Global macro across a number of different word files daffy Word VBA 6 07-08-2014 05:42 PM
Createing Macro to Increase Margin by 1pt thundercats9595 Word VBA 2 01-29-2014 12:36 PM
Looking for a macro to increase a number by 1 in a Word document Increase serial number for every print atomtm Word 1 06-15-2012 05:39 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:39 AM.


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