+ Reply to Thread
Results 1 to 3 of 3

Need help understanding this short macro

  1. #1
    Registered User
    Join Date
    02-01-2018
    Location
    Atlanta, USA
    MS-Off Ver
    Excel 2016
    Posts
    1

    Need help understanding this short macro

    Hello All,

    I am trying to understand the function and macro pasted below. I feel like I have a good grasp of the Public Function but the Private Sub is giving me a hard time. I was also wondering if the "Selection" in the "For Each c In Selection" was a variable or an excel defined use.

    Thank you a thousand times!!!
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 02-01-2018 at 11:36 AM. Reason: Added Code Tags

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Need help understanding this short macro

    No VBA expert, looks to me like the loop is adding an =IFBBERROR( ) round each cell in the selected range that is a formula and doesn't already have that.

    Not sure what the first is doing.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Need help understanding this short macro

    first one seems to be a custom iferror() where "-99998" is treated as an error.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

+ 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. "Translate" short code to help with understanding its function
    By JoeVanGeaux in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2017, 12:27 PM
  2. Macro that runs when ran from Macro menu, but stops when using short cut keys...
    By Joven76 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-12-2014, 02:29 PM
  3. Not understanding the macro issue
    By nawilliams62 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2012, 06:12 PM
  4. Defining target cells when importing columns from a text file
    By CassioGodinho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2012, 04:08 PM
  5. [SOLVED] Help. Understanding this Macro.
    By jwongsf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2011, 11:20 PM
  6. Understanding macro statement
    By HWMI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 03:15 PM
  7. How to set up short cut key of macro
    By Unknown in forum Excel General
    Replies: 1
    Last Post: 05-26-2006, 07: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