+ Reply to Thread
Results 1 to 12 of 12

retrieving a next data that is input

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    france
    MS-Off Ver
    2010
    Posts
    53

    Question retrieving a next data that is input

    Hello everyone,

    First I want to tell you I do not speak English so I went through a translator,
    I am beginner in VBA
    I entraint to make a production schedule and this schedule there is an administration interface with a combobox users.

    I just added it a somewhat peculiar feature is that there will have a password button forgotten?

    the user clicks on this button opens a userform (something I have already managed to do)

    just a little more to detail I have a sheet that is named Admin
    A column avond we identifier
    column B the password
    in column C the email address

    if the user clicks Password Forgot goes eg [email protected] and face well in this one page that I named Admin
    then the password and password sent to the email that is in column C

    if the email address is not in the comic message "Email is not in our database"

    thank you in advance for your assistancedemande mot passe.xlsm

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: retrieving a next data that is input

    This code requires that you have MS Outlook available, and that you create a reference to Outlook in your project.

    demande mot passe.xlsm

    This is the code for the commandbutton:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: retrieving a next data that is input

    The site is not letting me edit my post: you might want to change

    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-12-2016
    Location
    france
    MS-Off Ver
    2010
    Posts
    53

    Re: retrieving a next data that is input

    Good evening,

    I thank you so much for this encoding =) However Outlook and active well into my excel but I have a message that it puts in coding when I execute

    Here the screenshot
    Capture.PNG

    thanks for your help
    Best regards
    Ploz

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: retrieving a next data that is input

    You need to set a reference to MS Outlook - I don't have Outlook (we went to webmail) but this is what your project references should look like. It should not say "MISSING" but you need to put a check mark in the box next to the Outlook application so that Excel can use it to send email.


    Outlook Reference.JPG

  6. #6
    Registered User
    Join Date
    01-12-2016
    Location
    france
    MS-Off Ver
    2010
    Posts
    53

    Re: retrieving a next data that is input

    re Goodnight

    it's good does it work =)
    My outlook was in uncheck references : s

    again thank you for your help

  7. #7
    Registered User
    Join Date
    01-12-2016
    Location
    france
    MS-Off Ver
    2010
    Posts
    53

    Re: retrieving a next data that is input

    re = )

    I start to change a little the sentences it is possible that the password is not displayed in the msgbox ?

    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: retrieving a next data that is input

    You made the changes correctly to the message box - the password is not displayed in the message box. But it is not transmitted in the email, so change the .Body parts to this (you need to build up the string step by step, which means you need to add new strings to the end of the old instead of just replacing all the text:


    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-12-2016
    Location
    france
    MS-Off Ver
    2010
    Posts
    53

    Re: retrieving a next data that is input

    Frankly super thank you very much =)
    over for me today I me leve early tomorrow morning

  10. #10
    Registered User
    Join Date
    01-12-2016
    Location
    france
    MS-Off Ver
    2010
    Posts
    53

    Re: retrieving a next data that is input

    Hello,
    I tested this morning my factory, it works only if outlook is open as me yesterday he put in execution outlook in the spot near the bar of the clock,
    is there a way for it to execute in the background also
    debugging code was at this line

    ArticleDeCourrier.Send
    Best Regards
    PloZ

  11. #11
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: retrieving a next data that is input

    I don't have Outlook anymore to figure out what is needed - you might want to find an Outlook forum to ask a question like that - answers.microsoft.com has forums that should provide better help with Outlook.

  12. #12
    Registered User
    Join Date
    01-12-2016
    Location
    france
    MS-Off Ver
    2010
    Posts
    53

    Re: retrieving a next data that is input

    ok thank you

+ 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] Help with retrieving data
    By lvsmr2 in forum Excel General
    Replies: 7
    Last Post: 01-16-2013, 12:40 AM
  2. [SOLVED] Retrieving data from sheet into userform and being able to update(replace) that data
    By crobando in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-25-2012, 09:23 AM
  3. retrieving data
    By PeterClark in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2009, 06:41 PM
  4. retrieving data
    By mabrown in forum Excel General
    Replies: 3
    Last Post: 01-02-2009, 06:45 PM
  5. Retrieving Web Data
    By leafsfan1967 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2005, 01:47 PM
  6. Retrieving Data
    By oldspice in forum Excel General
    Replies: 0
    Last Post: 05-06-2005, 04:36 PM
  7. Help retrieving data
    By ceekay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2005, 05:39 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