+ Reply to Thread
Results 1 to 5 of 5

Help with a runtime error on a filtering macro.

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Help with a runtime error on a filtering macro.

    With this sites help I built a workbook that takes a long string of characters and breaks it down into subparts and then filters that throughout the workbook. I don't use the workbook, it was created to assist another and now we are receiving a runtime error. I currently don't have that workbook to provide but I was given a couple screenshots of the issue. I had them start all over in the original template and the same error occured, so I think it is something with the data file that we import in, but I am just looking for advice on where to begin to look.
    Attached Images Attached Images

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Help with a runtime error on a filtering macro.

    Hi,

    I would suggest you begin by changing that line of code- and the following one- to use the Value2 property
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Help with a runtime error on a filtering macro.

    Thanks. Can I ask why?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Help with a runtime error on a filtering macro.

    Simply because the only reason that comes to mind for receiving an overflow error on that line of code is an attempt to return a large number value from a cell formatted with a date format. Using .Value2 will return the number as a Double rather than attempting to convert it to a date.

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Help with a runtime error on a filtering macro.

    Awesome thanks! I will change that, and that was exactly the problem. one of the tabs had a number column formatted as a date. Guess I am going to have to lock the workbook down. Can't trust anyone....

+ 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] Advanced Filtering -Runtime Error 1004. Cannot figure out why will not work.
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2013, 08:00 AM
  2. Runtime error on macro
    By bradlessard in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2012, 11:00 PM
  3. Runtime error 9 in macro
    By goose1000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2011, 03:06 AM
  4. runtime error 13 after first run of macro
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2010, 09:50 PM
  5. runtime error in macro
    By papadoc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2006, 01:55 AM
  6. macro Runtime Error
    By Dave 2005 in forum Excel General
    Replies: 1
    Last Post: 10-18-2005, 05:05 PM
  7. Excel 2003 Macro Error - Runtime error 1004
    By Cow in forum Excel General
    Replies: 2
    Last Post: 06-07-2005, 09:05 AM
  8. [SOLVED] naming tab macro error runtime error 1004
    By D in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2005, 10: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