+ Reply to Thread
Results 1 to 9 of 9

List all formulas in active workbook

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    List all formulas in active workbook

    I have the macro below, which I cobbled together many years ago and use often, to list every formula in the workbook, with the address of said formula. I've noticed, belatedly, that it's producing an error. In the attachment I have sheets "Unique Values", which contains formulas and "Data", which has no formulas, just data. The sheet "Formulalist" is added by the macro, and lists all the formulas in the workbook. the error it's creating is for "Data" it's listing the same formulas as "Unique Values", and I can't figure out why. The macro is in the workbook and pasted below. I'd appreciate any help I can get on this.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,874

    Re: List all formulas in active workbook

    try
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: List all formulas in active workbook

    Fluff13, you're awesome. I never thought about putting a check to see if there WAS something in the NewRng. I also appreciate how you simplified the values being placed. I'm forever in your debt.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,874

    Re: List all formulas in active workbook

    Glad to help & thanks for the feedback.
    For reference, you can speed things up by using this
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: List all formulas in active workbook

    You're using a new term for me, "ary". Is that short for Array, and if so should I declare it as a variable?

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,874

    Re: List all formulas in active workbook

    Yes, it's just my way of naming an array & should be declared as
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: List all formulas in active workbook

    Getting Subscript out of range on
    Please Login or Register  to view this content.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,874

    Re: List all formulas in active workbook

    Missed a bit
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: List all formulas in active workbook

    That's funny; I had thought the same thing, AND put in the same "I=0", but in the wrong place.

+ 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. List files in directory of the active workbook
    By plans in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2017, 06:09 PM
  2. Open Another Workbook from Active Workbook but stay on Active Workbook.
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2014, 06:33 AM
  3. [SOLVED] Code to detect previous active workbook instead of current active workbook
    By kosherboy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2014, 01:58 AM
  4. Vba toChange all formulas source in worksheet to the active workbook
    By Bpd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2013, 10:16 PM
  5. Adding and Deleting to a list in a workbook other than the active workbook.
    By emilyloz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2013, 11:00 AM
  6. [SOLVED] Active X List box cnhanges size each time I open the workbook?
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2013, 07:14 AM
  7. VBA macro for hyperlink to active workbook in the active workbook path
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2013, 05:37 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