Results 1 to 15 of 15

Macro can't run otherwise working formula

Threaded View

  1. #1
    Registered User
    Join Date
    02-19-2015
    Location
    Iowa, USA
    MS-Off Ver
    2010
    Posts
    3

    Macro can't run otherwise working formula

    I'm trying to run a short macro to set up an "Audit Selection" population of data. But I always get an error when the script gets to the part of entering the formula:

    =LET(d,FILTER('Policy List'!A4:A5000,'Policy List'!A4:A5000<>""),r,ROUNDUP(ROWS(d)*50%,0),TAKE(SORTBY(d,RANDARRAY(ROWS(d))),r))

    Another user on this forum helped me with the formula and it works great when I just paste it in the cell. Is there some reason I can't plug it into a macro?

    Audit Selection Macro.txt

    Debug.JPGError Screenshot.JPG
    Last edited by ladylissa21; 07-12-2024 at 01:35 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro not working when called by IF formula
    By millerjj22 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-01-2017, 03:31 PM
  2. Macro Mid Formula Not Working
    By joshag in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2016, 09:59 AM
  3. [SOLVED] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  4. [SOLVED] Formula not working in Macro
    By mstoto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2015, 09:50 AM
  5. Formula in macro not working
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-06-2014, 03:44 PM
  6. [SOLVED] Formula not working within macro
    By theletterh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-13-2013, 12:32 PM
  7. formula is not working in macro
    By Jamnes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2012, 10:32 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