![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
How do I ensure that when I do a 'Save As' on my worksheet, all the associated macros will be bound with it?
At the moment, every time I 'Save As' and then press a tool button to activate one of my macros, I get either an error message staing that the path cannot be found or the original worksheet opens and the macro is executed on the original copy. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Is the toolbar with your macros attached to the original sheet?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
Yes it is.
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Well then the macro is still looking for the original workbook. Do you want the toolbar button to open up a workbook and then run the macro or is the workbook already open?
|
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
Quote:
|
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Sounds like the macro buttons are still pointing to the original workbook. Check to see the path...right click on a toolbar, goto customize, then activate the actual toolbar by clicking on it, then right click the buttons in question, goto assign macro, and check the path, delete the file path and just leave the macro name.
__________________
Kind regards, Al Chara |
|
|
|
|
|
#7 | |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
Quote:
|
|
|
|
|
|
|
#8 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi Nick
Are you just disabling the Toolbar or Deleting it? If the Toolbar IS attached to the Workbook it may need to be Deleted on Closing. This is a better way alround for attached toolbars. |
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
I'm just disabling them at the moment. I'll change it to delete and see how that works.
Cheers. |
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
Yahoo!!
Cheers Dave, that's done it. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|