excel-training-courses - assigning macro new workbook

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » excel-training-courses - Assigning Macro to new workbook

excel-training-courses - Assigning Macro to new workbook

resolvedResolved · Low Priority · Version Standard

Marianna has attended:
Excel VBA Intro Intermediate course

Assigning Macro to new workbook

Hello:

We have a macro that takes a worksheet out of a workbook and saves it as a new file. Within that worksheet that is being imported into a new file, we have another formatting macro attached to it in the form of a button.

The problem is that when the worksheet is saved as a new file, it does not have that formatting macro attached to it anymore.

Is there any way of exporting this formatting macro into a new file?

Many thanks,
Marianna

RE: Assigning Macro to new workbook

Hi Marianna,

When you save a macro you have two options; to save it in the workbook in which it was created, or to save it in a workbook called Personal.xls.
If you save it on Personal.xls it is automatically available to any other workbook opened or created on that PC
I suggest you try this, and if it doesn't work or you have further problems get back to us

Regards

Stephen

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Using basic functions without doing formulas

When you highlight figures Autocalc tells you the total in the bottom right of the screen, but if you right click on the sum it will give you some basic functions. The functions are Min, Max, Average, Sum, Count, and Count Nums.

View all Excel hints and tips


Server loaded in 0.05 secs.