Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

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

ResolvedVersion 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:

Quickly select a block of data

To quickly select a block of data make sure your active cell is somewhere whithin the block of data and then press Ctrl+* or Ctrl+Shift+8.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.