+ Reply to Thread
Results 1 to 2 of 2

Public Function to get name of current Macro if it errors

  1. #1
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Public Function to get name of current Macro if it errors

    Hello,

    I can have projects with up to a 100 macros, if somthing errors it can be hard to find the macro that needs attention.

    Is their away to write a Public Function to get name of current Macro if it errors?, I have searched but to no avail

    Thank you

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Public Function to get name of current Macro if it errors

    If a macro errors, a dialog opens that allows you to choose between End and Debug. Choosing Debug will take you to the line that caused the error.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. 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. [SOLVED] set public constant to current folder path
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2015, 05:24 PM
  2. [SOLVED] 'Public Function into Sub
    By frank35 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-05-2013, 01:27 PM
  3. how to track current Public variables?
    By twd000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2010, 03:32 PM
  4. #NAME Error with Function Defined with Public Function
    By Simon Austin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2009, 08:46 AM
  5. Using A Public Function /
    By carl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2006, 04:15 PM

Tags for this Thread

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