+ Reply to Thread
Results 1 to 4 of 4

Find or search error

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2011
    Posts
    16

    Find or search error

    If I put FIND or SEARCH in my macro, I get "SUB or FUNCTION not defined"
    Please Login or Register  to view this content.
    Change search to Find, get the same error.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,960

    Re: Find or search error

    SEARCH & FIND are worksheet functions, not VB functions. Check "Range.Find" in Help & "using Worksheet functions in VB"
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    02-02-2012
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2011
    Posts
    16

    Re: Find or search error

    I searched all of the help, only search and find in worksheet functions. Here is what I am trying to do. I want to get the active workbook name and call it Bookname. Then I want to delete the extension by finding the position of "." in the variable Bookname and save only the left characters to the "." less one.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,960

    Re: Find or search error

    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)

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