+ Reply to Thread
Results 1 to 2 of 2

VBA and Modules

  1. #1
    Registered User
    Join Date
    12-17-2015
    Location
    Pennsylvania
    MS-Off Ver
    MS Office 365
    Posts
    85

    VBA and Modules

    I have my personal workbook that I've stored all my macros in. There are 25 different modules. My question is should I worry about that? Should I clean them up and put them together or does it really matter? What is the best practice going forward with macros and the modules?

    Thanks in advance

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA and Modules

    Hi, I don't think it's a problem but what I would do is group the same type of macro's/functions in the same modules and give the modules descriptive names.
    I only have a small number of macros in my Personal macro workbook and have alse preceded the macro names with gp_ (g p and underscore), the reason is that sometime I copy the macro or even the module to a xlsm file and then remove the gp_ for use in that file so I alwasy know that Y run the correct macro.
    BTW GP stands for General Purpose.
    Hope this makes sense
    Above all don't forget to backup the Personal macro book
    Last edited by Keebellah; 01-16-2020 at 04:56 PM. Reason: Typing error
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ 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. macro 4 sheet Mysterious appearing Worksheets & Modules. Codes transferred to New Modules
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-24-2016, 07:07 AM
  2. "Private object modules cannot be used in public object modules...."
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2013, 04:07 PM
  3. Replies: 6
    Last Post: 04-21-2011, 01:12 PM
  4. [SOLVED] Public, Private, Event modules, Forms modules,,,
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-31-2005, 12:05 AM
  5. [SOLVED] Basic question - modules and class modules - what's the difference?
    By Mark Stephens in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-08-2005, 07:08 AM
  6. [SOLVED] VBA modules
    By Neugierig in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2005, 05:06 PM
  7. Modules and add-ins
    By SmilingPolitely in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2005, 12:06 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