+ Reply to Thread
Results 1 to 3 of 3

Function to extract last name with VBA

  1. #1
    Registered User
    Join Date
    05-11-2014
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Lightbulb Function to extract last name with VBA

    Sorry! Removed
    Last edited by Neeraj Chaudhary; 05-13-2014 at 11:14 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Function to extract last name with VBA

    Try this:
    Please Login or Register  to view this content.
    Regards,
    Rudi

  3. #3
    Registered User
    Join Date
    05-11-2014
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Function to extract last name with VBA

    Thanks Rudy!

    But not solving my purpose.

    Function lastName(FullName As String) As String
    lastName = Left(FullName, WorksheetFunction.Find(",", FullName) - 1)
    End Function

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. extract url from HYPERLINK function
    By Alicewonderland0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2014, 08:56 AM
  2. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  3. [SOLVED] Using LEFT function to extract value
    By src16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2013, 09:37 AM
  4. Extract Alphabet Function
    By mridzuani in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-19-2010, 04:21 AM
  5. Extract using MID function ?
    By Emory Richter in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-22-2005, 01:07 PM

Tags for this Thread

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