+ Reply to Thread
Results 1 to 3 of 3

Assigning Macro name puts the workbookname in front.

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Assigning Macro name puts the workbookname in front.

    Hi,

    I want to assign a Macro name to a button. but the issue is in the Assign Macro name window...the Name of the workbook preceeds the name of the actual Macro. When I try to remove the workbook name, and save it and then go in to try to re-assign the macro to the button...

    I see the name has not changed and the workbookname still stays in front of the macro name?

    Any clue as to what causes this?

  2. #2
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Assigning Macro name puts the workbookname in front.

    Macros are stored in modules. One module can contain lots of macros. You can use this to organize your macros: put a group of functionally related macros in one module, and another group in a second module.
    For example, you could have a module Maths with macros that perform mathematical calculations, and a module Finance with macros that perform financial calculations. Use whatever is convenient to you.
    You don't have to export the modules to name them; you can give modules meaningful names within the Visual Basic Editor itself:
    •Select a module in the Project Explorer
    •Change the name in the (Name) property in the Properties pane (press F4 if you don't see it).
    But! You should not give a module the same name as a macro - that is confusing to VBA, and - as you have found - it forces the Macros dialog to prefix the macro name with the name of the workbook and of the module

    Also you can store the macros in an Add-in.
    The macros will not be prefaced with a workbook name in that case.
    But the macros will not show up in View Macros............you just assign them to a button or shortcut key.

    Do refer below link.. may be of help

    http://www.excelbanter.com/showthread.php?t=382144
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Re: Assigning Macro name puts the workbookname in front.

    Thank You Parth!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-29-2014, 12:57 AM
  2. [SOLVED] Macro no longer puts formula in cell...?
    By fourmurphys in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2013, 03:48 PM
  3. Macro which puts SUMIF on the end
    By b737 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-01-2012, 08:19 AM
  4. macro that puts in borders on any cell that is not empty
    By mash100 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-18-2012, 03:45 PM
  5. [SOLVED] Macro sorts sheets but puts numbers 10-19 after 1 and 20-29 after 2
    By greywu1f in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-21-2012, 07:25 PM
  6. Replies: 4
    Last Post: 06-17-2010, 06:04 PM
  7. Macro puts #REF in VLOOKUP formula
    By DJH224 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2006, 01:40 PM
  8. When renaming a worksheet it puts ".xls]" in front of the name.
    By InexperiencedExcelUser in forum Excel General
    Replies: 2
    Last Post: 04-17-2005, 05:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1