Posts Tagged ‘Excel’

Still Getting Macro Error After it is Deleted?

Friday, May 13th, 2011

Many of us have workbooks that we have to work on that we did not originally create. Sometimes we come across one where the original creator used macros that either no longer work as they should or thatno longer exist.  But you are still plagued with the error that says: Enable/Disable Macros every time you open the workbook.

The reason this happens is that although the macro may have been deleted, the modules in which the macros were originally stored have not. So every time you open that workbook, MS Excel will check to see if it contains modules as it does with every workbook you open. If it checks and they there are empty modules, MS Excel will assume that the workbook contains macros and will prompt you to either enable or disable them.

To prevent this error from popping up in workbooks that have no macros, follow the steps below:

  1. Click Alt + F11 to open the Visual Basic Editor (VBE).
  2. On the left-hand side you should see the Project Explorer pane, with a tree structure similar to that of Windows Explorer, that contains your open workbooks. These are shown as VBEProjects.
  3. If the Project Explorer is not visible, click on CTRL + R to display it.
  4. If the Modules folder for your workbook has not be expanded, click the plus sign (+) to expand it.
  5. Right-click each module object in the Modules folder and select Remove Module.
  6. When you are asked if you want to Export the Module, select No.
  7. Close the VBE window and return to Excel.
  8. Save and close your workbook.

When next you open that workbook, the Enable macro message should not appear.

Add your Own Menu Items in MS Excel

Wednesday, May 11th, 2011

MS Excel is a robust piece of software that can make your life so much easier, but you do not want to wade through menu items that you hardly ever use, right?

You can customize Excel to meet your specific needs and have it your way just like the popular fast food franchise boasts.

Did you know that you can add a macro you have created to a menu?  Well you can! You can customize your menus to reflect your own personal commands.

Follow the steps below to learn how:

  1. Click on Tools | Customize to display the dialog box.
  2. Be certain the Commands tab is selected.
  3. In the Categories list, select the category of commands you would like to add to your menu or, alternatively, select Macros if you wish to add a macro to your menu.
  4. In the list of available commands for the category, select the one that you would like to add.
  5. Drag the selected command to the menu where you would like it added. The menu appears as you move the selected command over the command name.
  6. As you reach the point where you would like to add the item, simply release your mouse button.

That’s all there is to it!

Versions 97, 2000, 2002, 2003

Add Menu Items in MS Excel

Thursday, April 21st, 2011

It doesn’t bother some folks to keep re-inventing the wheel, but for us power users, we want to streamline things so that we can save time and keystrokes.  Isn’t that the whole point of using the Microsoft Office Suite?  It is supposed to make life easier for us and save time and it can absolutely do that.  We just have to set it up to do our bidding.

If you find that you are always clicking around to find something that you do fairly frequently in your worksheets, it is time to customize things to save time. For instance, using macros.

Follow the steps below to learn how:

  1. Click on Tools | Customize.
  2. Be certain the Commands tab is selected.
  3. In Categories, select either the category of commands you would like to add to your menu, or select Macros if you would like to add a macro to a menu.
  4. In the list of available commands for the category, select the one that you would like to add to a menu.
  5. Drag your selected command to the menu where you would like it added.
  6. The menu appears as you move the selected command over the command name.
  7. Once you have reached the point where you would like your item to be added, release your mouse button.

Life will now be much simpler for you!

Versions 97, 2000, 2002, 2003