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.
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.
Instead of this
use this.Please Login or Register to view this content.
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.
Trybut your code needs to go in the ThisWorkbook module, not the sheet modulePlease Login or Register to view this content.
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.
Thank you both. It works nicely. Appreciate the advice.
Glad we could help & thanks for the feedback
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?
Hi,
Maybe
Try to get into the habit of using VBA sheet code names not Excel tab names which are all to easily changed.Please Login or Register to view this content.
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.
Thanks You!!
Simplify the code and place it in the Thisworkbook module
Username welcome.xlsb
Glad to help and thanks for rep+.
@ VenA (ja, ik ken je wel )
Needs to beelse error message on opening workbook.Please Login or Register to view this content.
@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
@ VenA
Zegt 'warme bakkertje' (helpmij.nl, worksheet.nl, oplossing.be) je nog iets ?
@bakerman2, dan was mijn vermoeden juist Rudi(e) als ik het goed heb. Volgens mij allang niet meer gezien op helpmij.nl.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks