+ Reply to Thread
Results 1 to 12 of 12

open a message window when excel file is opened with a function button

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Exclamation open a message window when excel file is opened with a function button

    Hi,
    I am looking for help for the following:

    Whenever the excel file is opened, it opens a small window stating ' please print your email address' with a click button 'Enter'

    When the button is pressed, the window disappears , but the email address typed is stored in sheet 10 in the next available row with date and time populated from
    Please Login or Register  to view this content.
    This will allow to keep track of who has used excel file , when and what time?

    Is it possible?

    Any help please

    Regards

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: open a message window when excel file is opened with a function button

    Please find the file attached!!!

    Is this what you want?

    Just change the Code to suit Sheet 10 as required..
    Attached Files Attached Files
    Last edited by NeedForExcel; 05-03-2013 at 05:54 AM.
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: open a message window when excel file is opened with a function button

    Hi,
    Sorry. Cant see the attached file.
    Regs

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: open a message window when excel file is opened with a function button

    Now??

    Attachment attached again!


    Thank you,

    Deep
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: open a message window when excel file is opened with a function button

    Hi,
    It is exactly what I was looking for.
    Fantastic help.
    Really appreciate.
    Regs

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: open a message window when excel file is opened with a function button

    Sure, Glad it helped!!

    Cheers!

    Deep

  7. #7
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: open a message window when excel file is opened with a function button

    Hi Apology to reopen this one because I am making a mistake.

    I created a sheet called 'Who' and amended the code as follows:
    Please Login or Register  to view this content.
    It does everything as you have explained, but records the email and time in sheet1 whereas I want it to be in sheet called 'Who'
    Please help
    Regs

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: open a message window when excel file is opened with a function button

    I dont see anything wrong with the code.

    Have u pasted a code in a code Module, or a workbook Module like it was in my attachment?

    Else you can just attach your sheet, ill make the changes!

  9. #9
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: open a message window when excel file is opened with a function button

    If you can get the code working, please make a little change in the code -

    Please Login or Register  to view this content.
    This will Close the workbook if the user tries to get in without entering any data.

  10. #10
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: open a message window when excel file is opened with a function button

    Hi,
    The code is great. When I use it it records the email and date/time in sheet1, but I want it to be recorded in sheet called'Who'.... it is now sheet15... I have named it as 'Who'.
    I have changed the sheet name back to 'sheet15 ' and it works fine.
    small mistake on my part.
    Your code is fantastic. I dont have words to thank you. This is now fully closed thread.
    Regs.

  11. #11
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: open a message window when excel file is opened with a function button

    Cool

    Please make the minor correction I mentioned above.

    Thank You,

    Deep

  12. #12
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: open a message window when excel file is opened with a function button

    Hi, KK1234,

    the code copies to the active sheet, not to one specified.

    Please Login or Register  to view this content.
    And I would not rely on the tabsheet name of any sheet which could be easily altered but on the codename shown in the VBE.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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