+ Reply to Thread
Results 1 to 6 of 6

Run-time error 7: out of memory

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Palo Alto, CA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Run-time error 7: out of memory

    Hi

    Any ideas on why I am getting "Run-time error 7: out of memory" in the code below?

    The code runs until the
    Please Login or Register  to view this content.
    line at the end of my external data import section.

    Thanks


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    08-23-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Run-time error 7: out of memory

    All the previous lines inside the With statement are setting properties.
    the
    Please Login or Register  to view this content.
    is a method call.

    The refresh is supposed to refresh the results.
    The background Query is for when quering SQL data and is optional so I think you can leave it off and just have
    Please Login or Register  to view this content.
    ?
    A macro does what you tell it, not what you want.

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Palo Alto, CA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Run-time error 7: out of memory

    thinkspac,

    I changed
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    but it did not help...

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Run-time error 7: out of memory

    Can you provide the workbook?

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    Palo Alto, CA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Run-time error 7: out of memory



    I'm embarrassed! i just realized that the txt file that I was trying to import was blank. I put data into the txt file and the macro ran.

    Thanks anyway

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Run-time error 7: out of memory

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    HTH
    Regards, Jeff

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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