+ Reply to Thread
Results 1 to 5 of 5

VBA to pull username into specific cell

  1. #1
    Registered User
    Join Date
    05-12-2012
    Location
    sterling heights, mi
    MS-Off Ver
    Excel 2007
    Posts
    11

    VBA to pull username into specific cell

    Hello!

    I am trying to set up a form that will pull data based on who opens the file. I was able to find code to pull the username upon opening the document and display it in a message box. But i would like this info in cell "B2" instead of a message box.

    I have attached a blank file that has the VBA to display in a message box. Can anyone assist in getting the username to display in the select cell instead? any help is very much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,376

    Re: VBA to pull username into specific cell

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,290

    Re: VBA to pull username into specific cell

    Please Login or Register  to view this content.
    Or maybe this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    05-12-2012
    Location
    sterling heights, mi
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: VBA to pull username into specific cell

    Thank you! thats exactly what I was looking for!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,376

    Re: VBA to pull username into specific cell

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Pull value from specific cell
    By CJFugate in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-05-2015, 04:57 PM
  2. [SOLVED] Looping to pull specific cell value
    By mani_bbc05 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-03-2013, 03:31 PM
  3. VBA for a excel tracker - pull data from a location based on system username
    By solomon rajesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 07:02 AM
  4. [SOLVED] How do I pull specific text out of a cell?
    By slojhammer in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 01:48 PM
  5. [SOLVED] Pull and store a value on specific date in another cell
    By Brian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2005, 06:20 PM

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