+ Reply to Thread
Results 1 to 4 of 4

Error on range().find command

  1. #1
    Registered User
    Join Date
    01-13-2010
    Location
    A nice cool breezy office
    MS-Off Ver
    Excel 2003
    Posts
    2

    Error on range().find command

    Please Login or Register  to view this content.
    This line of Code is giving me the following error:
    Run-time error '91'"
    Object variable or With block variable note set
    What I'm trying to do go down a column searching for any formula that has "ROUND" in it, if it does, then I need to copy that formula and paste it across. I'm sure there's an easier way of doing it, but I don't know about it =]

    I'm not too familiar with the FIND method, any help is appreciated.

    THANKS!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Help with error on range().find command

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Help with error on range().find command

    Hello Meetloaf13,

    This macro will loop through the cells in column "B" and copy and paste the formula, if it contains the word "Round" (case is ignored).
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    01-13-2010
    Location
    A nice cool breezy office
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with error on range().find command

    Leith, that was amazingly perfect. I'll have to study up on this code to understand the programming logic.

    Thank you very much.
    Last edited by shg; 01-14-2010 at 12:48 PM. Reason: deleted spurious quote

+ 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