+ Reply to Thread
Results 1 to 5 of 5

Out of Memory Error, on third line of code.

  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Exclamation Out of Memory Error, on third line of code.

    Hey all, i get an out of memory error when my code hits this line.

    Please Login or Register  to view this content.
    It worked a couple of times when i ran the code but it doesnt work now. i didnt think that that would take up a load of memory.

    is there any other reason why that message would appear? or i get a break on it.

    ofter the out of memory it gets to that line and gives the object not defined or something like that error.

    is there anything i am doing wrong??

    Thanks

    Tom
    Last edited by t0m46; 08-19-2010 at 07:35 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Out of Memory Error, on third line of code.

    Post your code, I can't tell from one line.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,979

    Re: Out of Memory Error, on third line of code.

    You appear to have misspelled Offset.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Out of Memory Error, on third line of code.

    What if the activecell is in column A ?

  5. #5
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Thumbs up Re: Out of Memory Error, on third line of code.

    Hey all,

    Thanks for all your replys. I have just realised that it is selecting column A1 on the wrong sheet even though i have Sheet1.select in the code.

    I have changed the range now and the Sheet1.select part to Sheet1.rangeA1 the jump to right.

    and it now works. was a bit unsure why it wasnt selecting the cell on the sheet i selected though.

    Thanks

+ 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