+ Reply to Thread
Results 1 to 5 of 5

How to rename a module

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    How to rename a module

    Dear Friends,
    I have several modules in a workbook. They are named by default as module 1, module 2, module 3, ... which confuse me which module i want to edit. I have to open each module and see the code which I don't want. To avoide this I want to rename the module as per its function or as per my requirement.
    Please suggest me the method to rename a module easily for easy finding.
    Thank you.

    Mukesh

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to rename a module

    • Open the Properties window (F4)
    • Click on the module you want to rename
    • You can change its name in the Properties window.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: How to rename a module

    Hi Mukesh,

    From within the Visual Basic Editor, simply click on the existing module (from the left-hand Project - VBAProject panel) you wish to change and enter the desired name in the Name field of the Properties pane. Just make sure the module name is different from any macro name within the module to avoid any conflict.

    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: How to rename a module

    Hello AlphaFrog,
    Thank you it's working fine.

    Mukesh

  5. #5
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: How to rename a module

    Hello Trebor76,
    Thank you.

    Mukesh

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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