+ Reply to Thread
Results 1 to 15 of 15

Welcome message of username in cell

  1. #1
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Welcome message of username in cell

    Hi I would like to place a welcome message in cell B5 when the user opens the workbook. I managed to find a code and have placed this on the attached file. Can i have some guidance on how do i link the code to cell B5.
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Welcome message of username in cell

    Instead of this
    Please Login or Register  to view this content.
    use this.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Welcome message of username in cell

    Try
    Please Login or Register  to view this content.
    but your code needs to go in the ThisWorkbook module, not the sheet module

  4. #4
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: Welcome message of username in cell

    Hi Bakerman2. Thank you for the response. Should i paste it in the worksheet or insert into a new module. By the way can i know whats the difference between both.

  5. #5
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: Welcome message of username in cell

    Thank you both. It works nicely. Appreciate the advice.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Welcome message of username in cell

    Glad we could help & thanks for the feedback

  7. #7
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: Welcome message of username in cell

    Hi Sry I may have missed out this sub question. If i would like the code to appear on Sheet2 and Sheet3 on the same cell B5, How could i amend this code?

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Welcome message of username in cell

    Hi,

    Maybe

    Please Login or Register  to view this content.
    Try to get into the habit of using VBA sheet code names not Excel tab names which are all to easily changed.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  9. #9
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: Welcome message of username in cell

    Thanks You!!

  10. #10
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Welcome message of username in cell

    Simplify the code and place it in the Thisworkbook module

    Username welcome.xlsb

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Welcome message of username in cell

    Glad to help and thanks for rep+.

    @ VenA (ja, ik ken je wel )

    Needs to be
    Please Login or Register  to view this content.
    else error message on opening workbook.

  12. #12
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Welcome message of username in cell

    @bakerman2, You are right on my fault. I am therefore only a Registered User

    Nb. Waar ken je me van of onder welke nickname wandel(de) je rond op Nederlandse fora? Al heb ik een vermoeden maar dan klopt jouw avatar niet

  13. #13
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Welcome message of username in cell

    @ VenA

    Zegt 'warme bakkertje' (helpmij.nl, worksheet.nl, oplossing.be) je nog iets ?

  14. #14
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Welcome message of username in cell

    @bakerman2, dan was mijn vermoeden juist Rudi(e) als ik het goed heb. Volgens mij allang niet meer gezien op helpmij.nl.

  15. #15
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: Welcome message of username in cell

    Hi, I just saw this reply. Can i check whats the difference between the xlsb and the xlsm file? I do have other tabs with graphs and forumla on the cells so i am wondering if there will be any issues.

+ 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. [SOLVED] VBA to identify username and prompt message box
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-25-2013, 04:27 AM
  2. Add Username Cell Reference to existing VBA
    By jedemeyer1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2013, 03:15 AM
  3. [SOLVED] Username and Password Form - Show Username in Sheet
    By ryan180 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2013, 07:06 PM
  4. Display username in message box that has a file open
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2010, 01:08 PM
  5. Cut username from a cell with a function
    By sancaguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2007, 10:06 AM
  6. Show username in a cell
    By bradasley in forum Excel General
    Replies: 4
    Last Post: 06-05-2006, 10:40 AM
  7. [SOLVED] Saving username into a cell
    By thudson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2006, 06:23 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