|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Can we define macros in a way to not misworking after deleting, renaming or moving the source file?
Hi, I made a macro with name "Yellow" in a excel file named file1. Then, I add this Yellow macro to Quick Access Toolbar and automatically it worked for other excel files. After some days, I changed the name of file1 to filex. After that the Yellow macro does not work anyway. It shows an error and says: "Sorry we could not find file1. It is possible it moved or deleted or renamed?"
1) Why macros do not work after deleting, renaming or moving the source file, which we define them in it? 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? Thanks for any help. |
#2
|
||||
|
||||
Quote:
Sure, but you have to code the macro to do what you want it to under such circumstances.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
Quote:
Quote:
|
#4
|
|||
|
|||
Thank you so much macropod and Debaser!
Quote:
Thanks again. |
#5
|
||||
|
||||
I don't think the QAT (Quick Access Toolbar) is particularly relevant here - it only comes into play if you attach a macro to it.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
Thank you macropod! I got what is QAT
Would you please explain what is Ribben, CustomUI and workbook? I think if you explain these, you will solve my problem. Thanks a lot. |
#7
|
||||
|
||||
You really shouldn't need anyone to explain what the Ribbon is or what a workbook is. They're standard terms and you cannot use Excel without them. I suggest you do a web search on these terms...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#8
|
|||
|
|||
Thank you so much. Bless U.
|
#9
|
|||
|
|||
Quote:
|
#10
|
||||
|
||||
I suggest you read this site: http://www.rondebruin.nl/win/section2.htm
|
#11
|
|||
|
|||
Quote:
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |