+ Reply to Thread
Results 1 to 7 of 7

Rintime Error 424 Object Required - No Data Type working with Dim

  1. #1
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Rintime Error 424 Object Required - No Data Type working with Dim

    Hi Gurus

    I thought I knew it but it is strange I am getting this error.

    Please Login or Register  to view this content.
    I get Runtime error 424 when macro reaches "If ws.Cells(i, 10).Value = BankEntry Then" Line.

    I tried Integer, Long, String. Nothing works

    When I hover mouse to "BankEntry" while running macro, it shows correct Value.

    Any clue?
    Last edited by caabdul; 01-20-2018 at 07:24 PM.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Rintime Error 424 Object Required - No Data Type working with Dim

    You say you tried Integer....did you dim i and j as integer?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Rintime Error 424 Object Required - No Data Type working with Dim

    I suspect you just need to remove ws. from
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Rintime Error 424 Object Required - No Data Type working with Dim

    gmr4evr1, you are saying write, I missed defining some data types

    TMS, You Rock

  5. #5
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Rintime Error 424 Object Required - No Data Type working with Dim

    One small issue

    I have Dim BankEntry as Integer.
    When I run it on 99.99, the "BankEntry = Cells(j, 9).Value", it stores it as 100 and when I compare it with 99.99, it does not equal in Boolean.

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Rintime Error 424 Object Required - No Data Type working with Dim

    2 things I would try
    1 - Dim BankEntry as Range
    2 - Check the format of where the 100 is to make sure it is formatted as number with 2 decimal places.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Rintime Error 424 Object Required - No Data Type working with Dim

    Try:
    Please Login or Register  to view this content.

+ 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. VBA Error Message - Runtime Error 424 Object Required
    By jackiea6363 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2017, 04:23 AM
  2. [SOLVED] Simple Calendar pop up macro --> error Run-time error '424': Object required
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 10:38 AM
  3. [SOLVED] Object Required Error
    By Steve0492 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2012, 06:36 PM
  4. Name.Object (Error Object Required)
    By dssrun209 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2010, 01:38 PM
  5. Error 424 Object Required Error when Using AddItem to ListBox Generated in Code
    By jclark419 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2010, 12:47 PM
  6. [SOLVED] Please Help! Object Required suddenly, was working before!
    By Duncan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2006, 01:35 PM
  7. Dictionary object: Error assigning user defined data type to item
    By Paul Urbanus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2005, 12:25 AM

Tags for this Thread

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