Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-11-2015, 02:51 AM
Debaser's Avatar
Debaser Debaser is offline Can we define macros in a way to not misworking after deleting, renaming or moving the source file? Windows 7 64bit Can we define macros in a way to not misworking after deleting, renaming or moving the source file? Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

Quote:
Originally Posted by tesoke View Post
1) Why macros do not work after deleting, renaming or moving the source file, which we define them in it?
Because the QAT contains a full path to the file containing the code and that is not updated when you rename the file.

Quote:
2) Is there any way to solve this problem? Can we define macros in a way to not misworking after deleting, renaming or moving the source file?
Yes - don't use the QAT. Customise the Ribbon using the CustomUI part of the workbook. That way all the customisation is stored in the workbook itself, not in a separate file as it is with the QAT.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we define macros in a way to not misworking after deleting, renaming or moving the source file? Macros to move objects prevents moving same objects with arrow keys BruceM Word VBA 1 03-10-2015 08:20 AM
Deleting and moving word documents tenpasteight Word 3 06-01-2014 11:10 AM
define a mail merge data source using unc (universal naming convention) charlesandrews Mail Merge 0 08-21-2012 10:33 AM
Deleting sections without formatting moving up pamorrison Word 1 04-20-2012 02:14 AM
truncating path or renaming audio file to play in powerpoint rbookend PowerPoint 0 05-02-2006 03:39 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:01 AM.


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