+ Reply to Thread
Results 1 to 6 of 6

Having Error To Consolidate Data Into A Specific Row

  1. #1
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Having Error To Consolidate Data Into A Specific Row

    Hi,

    I am trying to write up a macro to combine some of the information from "Shortage" tab into "Apple" tab under column X.

    I got the error "Run-time error '3001'. Arguments are of the wrong type....."

    I cannot figure what went wrong. Pls help.

    TIA!
    Last edited by Bubbles_A; 06-02-2020 at 09:40 PM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Having Error To Consolidate Data Into A Specific Row

    First of all you have the field name wrong I believe... you used Prod Order but the field is Prod Ord #
    That alone doesn't solve it, there are spaces in the field name and could't get it to work with the apostrophes mysql would use, but if you wrap it in square brackets it will work:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Re: Having Error To Consolidate Data Into A Specific Row

    Hi Arkadi,
    Thanks. I updated my macro but it still gives me the same error "Run-time error '3001'. Arguments are of the wrong type....." but funny thing is row 4 able to populate the result but not row 3?
    Attached Files Attached Files

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Having Error To Consolidate Data Into A Specific Row

    Please Login or Register  to view this content.
    (I added .Range around I10) is resulting in selecting a range of empty cells (because your last row is ABOVE I10. So the code fails because it is trying to filter by "" If you change I10 to I2 (first row of data), then you won't get errors.

  5. #5
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Re: Having Error To Consolidate Data Into A Specific Row

    Hi Arkadi,
    Great help. It is working perfectly now. Thanks!

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Having Error To Consolidate Data Into A Specific Row

    Glad I could help
    Thanks for the feedback, rep, and marking the thread as solved!

+ 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] consolidate specific data among worksheets into one worksheet by input box
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2020, 07:37 PM
  2. [SOLVED] Consolidate data from multiple sheets from specific ranges that can be in dynamic length
    By mujahidreza in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-11-2019, 04:31 AM
  3. Replies: 5
    Last Post: 01-28-2019, 07:45 AM
  4. [SOLVED] Consolidate Data from Specific Worksheets
    By G.Bregvadze in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-16-2018, 03:16 AM
  5. Macro to extra data in several csv and consolidate specific data
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2016, 12:02 PM
  6. Merge/Consolidate data in specific columns
    By tjohnpok in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-25-2016, 02:15 PM
  7. VBA to consolidate specific data from multiple workbooks to a master workbook
    By Blastaway12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2014, 04:39 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