+ Reply to Thread
Results 1 to 4 of 4

Out Of Resources Error

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Out Of Resources Error

    Maybe my script is just incorrectly written, what I am wanting to do is to scan each row in column C and if it is not empty then capitalize the 1st letter. This syntax runs for about 12 seconds then I get an out of system resources error. Should I write this another way? What can I do to have this function execute as I need?
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Out Of Resources Error

    That code won't compile, never mind run long enough to exhaust resources... You use the same variable as the control in 2 For Loops.

    Also, none of the defined constants for the END method has a value of 3.
    xlUp = -4162
    xlDown = -4121

    As it is, the code is probably looping from 1 to 2 stepping -1 which means it will never even enter that For when you correct the duplicated loop variable.
    Last edited by cytop; 05-09-2017 at 09:04 AM.

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Out Of Resources Error

    Hi jo15765
    try this
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Out Of Resources Error

    @nilem - that got it. 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. Not enough resources error
    By ronopp in forum Excel General
    Replies: 3
    Last Post: 05-02-2017, 10:59 AM
  2. Error Message - Large Operation - available resources?
    By MarvinP in forum Tips and Tutorials
    Replies: 2
    Last Post: 12-04-2013, 07:25 PM
  3. Replies: 4
    Last Post: 05-10-2013, 12:45 PM
  4. not Enough Resources error
    By milton friedman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2013, 09:56 AM
  5. available resources error message
    By stephenGaddy in forum Excel General
    Replies: 1
    Last Post: 12-11-2009, 03:49 AM
  6. Excel 2007 : Error - Excel has run out of resources!
    By rikkiholland in forum Excel General
    Replies: 7
    Last Post: 09-22-2009, 04:27 AM
  7. [SOLVED] error: Not enough system resources to display completely
    By Rich in forum Excel General
    Replies: 1
    Last Post: 02-27-2006, 09:10 PM

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