+ Reply to Thread
Results 1 to 2 of 2

Error after running macro

  1. #1
    Registered User
    Join Date
    04-18-2011
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2019
    Posts
    90

    Error after running macro

    I have a sheet that calculates some times. In some places i get an error. Which is represented like this : ##########

    If i search for "#" with the option to look in values, i can find the cells, but the find/replace looks only in formulas so it does not find these cells.

    I have this macro

    Please Login or Register  to view this content.
    Macro 2 searches for the cell and clears the contents. But i get this error after running the macro:

    Runtime Error 91 : Object variable or with block variable not set


    The macro seems to do it's job (clearing the content of the cells), but I need to get rid of the error.

    Thanks for the help

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Error after running macro

    you must find out why that #### occurs. sometimes it may be due to column width is not enough.

    you study the formula which gives this error and revise it if necessary

+ 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