+ Reply to Thread
Results 1 to 5 of 5

Application.Username - Amend Output

Hybrid View

  1. #1
    Registered User
    Join Date
    09-07-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    54

    Application.Username - Amend Output

    Hello,

    I am using the Application.Username function VBA which works great. However, I need to get the name out put, e.g. "Jack Smith" to be "J Smith". I would imagine using the Right/left would be the way but I don't get anywhere.

    Can anyone point me in the right direction?

    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,031

    Re: Application.Username - Amend Output

    Untested, but what about something like:

    Left(Application.UserName, 1) & " " & Right(Application.UserName, Len(Application.UserName) - InStr(Application.UserName, " "))
    BSB

  3. #3
    Registered User
    Join Date
    09-07-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Application.Username - Amend Output

    Thanks, that worked great.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,031

    Re: Application.Username - Amend Output

    Well that was a stroke of luck!

    Happy to help (even if it was more fluke than judgement).


    BSB

  5. #5
    Registered User
    Join Date
    09-07-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Application.Username - Amend Output

    At least I'm getting to the point where I know I'm trying to do and what I need to use, even though I still need help to get to the next step. Thanks again.

+ 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. IF OR using multiple Application.UserName criteria
    By glennsnoise in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-15-2018, 04:10 PM
  2. [SOLVED] Help require to amend the formula to get perfect output
    By mso3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-15-2015, 03:00 AM
  3. [SOLVED] VBA code to change the application.username and application.userinitials
    By jwlamb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 11:25 PM
  4. Populating application username if next cell is populated- formula
    By KK1234 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-12-2013, 10:46 AM
  5. usage input box and application.username
    By jwongsf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2009, 06:23 PM
  6. Application UserName
    By talytech in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2007, 05:06 PM
  7. [SOLVED] amend this routine to use something other than Application.FileSearch
    By Lucas Budlong in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2006, 05:20 AM

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