+ Reply to Thread
Results 1 to 2 of 2

Autofill memory allocation problem or?

  1. #1
    Registered User
    Join Date
    05-27-2019
    Location
    Frankfurt, Germany
    MS-Off Ver
    Excel 365
    Posts
    0

    Unhappy Autofill memory allocation problem or?

    Hi All,

    I'm a beginner in vba and encountered what I beleive is to be a memory allocation problem or what?

    This is the macro

    ActiveWorkbook.Worksheets(2).Range("P2").Formula = "=SUMIF($M$2:$M$100000,M2,N2)"
    ActiveWorkbook.Worksheets(2).Select
    Range("P2").Select
    Selection.AutoFill Destination:=Range("P2:P" & Range("A" & Rows.Count).End(xlUp).Row)

    But after 3188 rows it stops working??? Why? Column N is filled with 1. Column M with product grades and I want to sum all grades that are equal and place the sum in column P.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166
    Hello revlis,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] Allocation problem
    By netoine in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2017, 05:15 AM
  2. [SOLVED] Thrashing VBA Memory Leaks. Memory Loop Problems. Uncleared Memory in .Match Range Object
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2017, 05:17 PM
  3. [SOLVED] Resource Allocation Problem
    By chullan88 in forum Excel General
    Replies: 13
    Last Post: 08-25-2016, 02:50 AM
  4. Excel 2010 fails to release memory allocation
    By TACAMO in forum Excel General
    Replies: 3
    Last Post: 02-03-2014, 07:42 PM
  5. Allocation Problem
    By fixedhalo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-18-2011, 04:59 PM
  6. XLL Memory allocation problem
    By Nat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2006, 07:10 AM
  7. re-allocation problem
    By Sienayr in forum Excel General
    Replies: 1
    Last Post: 03-21-2005, 06:06 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