Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: system resources

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    Philadelphia
    Posts
    100
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    is there anyway to check your system resources in VBA code? I'd like to insert a section into a macro that stops the macro if resources (RAM) gets too low. the reason is that i periodically get an error message like "out of memory" in the middle of my macro.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    2,940
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    You could have a look here at the GlobalMemoryStatus API call.

    http://www.vbapi.com/ref/g/globalmemorystatus.html

    Let me know if you need any help with the code.

    Regards,
    D

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Posts
    3,184
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi

    Hi dk hope you fine, over there about 2 / 3 miles or so away!

    OK... Look what Opperating System are you on.. this is teh issue, what spec PC ie Chip and memory foprget the rest
    Free Excel based Web Toolbar available here.

    Jack in the UK
    J & R Excel Solutions
    "making Excel work for you"

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •