+ Reply to Thread
Results 1 to 2 of 2

VBA Finding a way around an array error 1004

  1. #1
    Registered User
    Join Date
    11-16-2018
    Location
    Saudi Arabia
    MS-Off Ver
    2016
    Posts
    4

    VBA Finding a way around an array error 1004

    Hey guys,

    i have the following code that i wish to use:


    PHP Code: 
    Range("D3").Select    Selection.FormulaArray _   
         
    "=IF(INDEX('Raw Data for PR Dist'!R7C5:R100000C5,MATCH(1,('PR Dist SSD Report'!RC[-3]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-2]='Raw Data for PR Dist'!R7C2:R100000C2),0))="""","""",INDEX('Raw Data for PR Dist'!R7C5:R100000C5,MATCH(1,('PR Dist SSD Report'!RC[-3]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-2]='Raw Data for" _       " PR Dist'!R7C2:R100000C2),0)))" _        "" 
    the problem is the following:

    1) The code exceeds 244, thus i need a workaround

    2) i want the workaround to autofill till last row starting Cell D2 till the last existing data in Column A1


    This was my first workaround but i can not use it to Autofill or copy paste it till last cell.

    Please Login or Register  to view this content.
    as the A3 and B3 are not updating as we do down the cells to A4, A5...etc B4,B5...etc

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: VBA Finding a way around an array error 1004

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. Index Array Match - 1004 Error
    By Nipius in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-07-2016, 10:54 AM
  2. [SOLVED] Run Time Error 1004 within Array
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2015, 04:11 AM
  3. Data to be copied from Worksheet into Array gives error 1004
    By Inventiveman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2013, 09:00 PM
  4. macro to enter array formula not working get error 1004
    By bkwins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2013, 06:52 AM
  5. Array loop producing error "Run time error '1004'"
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-06-2011, 08:56 AM
  6. Comparing a string to values in an array resulting in a Run time Error 1004
    By sgreni in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2009, 04:21 PM
  7. Error 1004 using array in Sheet select.
    By Trefor in forum Excel General
    Replies: 4
    Last Post: 09-07-2005, 03:05 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