+ Reply to Thread
Results 1 to 2 of 2

Using Find() in VBA

Hybrid View

Nike6106 Using Find() in VBA 03-08-2010, 12:43 PM
StephenR Re: Using Find() in VBA 03-08-2010, 12:45 PM
  1. #1
    Registered User
    Join Date
    07-07-2006
    Posts
    26

    Using Find() in VBA

    Hi

    I use the find function alot in my spreadsheets.
    For example if I have "2x3" in cell A1 and write the function =find("x",A1) excel will return 2. I am trying to use this in VBA but I am getting Sub or Function not defined, guess it is interferring with the VBA find function.

    Any idea how I can get the location of the "x" in the string?

    Thanks
    Last edited by Nike6106; 03-08-2010 at 02:31 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Using Find() in VBA

    MsgBox WorksheetFunction.Find("x", Range("A1"))
    works for me.

+ 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