+ Reply to Thread
Results 1 to 10 of 10

Set error cells = 0

  1. #1
    Registered User
    Join Date
    07-03-2007
    Posts
    17

    Set error cells = 0

    Is there a macro or method to find all the error cells in a range, highlight it, and enter a zero in the cell?
    Last edited by yuryyuryyury; 07-06-2007 at 02:43 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-03-2007
    Posts
    17
    that worked well, but i realized that some of the error messages i was getting are custom types, so a couple still remain.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    realized that some of the error messages i was getting are custom types
    Can you give an example of what you mean by this

    VBA Noob

  5. #5
    Registered User
    Join Date
    07-03-2007
    Posts
    17
    I am using bloomberg, so the errors i'm getting are like "#N/A History" and others. I'm checking with them if they have something already made for this.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Is #N/A the only error in string to find

    VBA Noob

  7. #7
    Registered User
    Join Date
    07-03-2007
    Posts
    17
    i think so.. so far that's the common thing i'm seeing.

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.
    VBA Noob

  9. #9
    Registered User
    Join Date
    07-03-2007
    Posts
    17
    it works..

    if i want to specify certain ranges, can i use this:

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.
    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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