+ Reply to Thread
Results 1 to 23 of 23

Login Form

  1. #1
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Login Form

    Hi guys,

    I've seen this login form (picture on the right) that I would like to use, so I searched google for the image and build my login form..... what i get is as per (picture on the left)

    What I would like to do is trim the boxed window look and just show the image "picture on the right"

    How would we go about doing this? VBA???

    Many thanks
    Attached Images Attached Images

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    Paste this code into your Login Form to hide the RED X in the upper right hand corner of the form :

    Please Login or Register  to view this content.
    The word "Login" shown in the upper left hand corner can be deleted by going to the login form's properties window. Look for CAPTION .... then remove the word LOGIN.

  3. #3
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Thanks for your kind help Logit

    However the code does not do exactly what I am after.

    As you said it takes the x from the top right corner of the window and the word Login I can remove without a problem, but the form still loads with the popup rectangle window look.

    What I was hoping to achieve is as per attached picture, as you can see only the image is visible, the popup window seams to be transparent....! see picture

    Also attached the excel workbook with the form I am trying to do.

    Best
    Tony
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    The only thing you are missing on the form at this point are the two labels: "Change Password" & "Help".

    Those can be created by inserting a label on the form and editing the caption to match. Then you can right click each label and assign a macro to it.

    The is nothing more you can do to the image - the 'squareness' of the form will always show through.

  5. #5
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Ok Thanks....!

    I don't really want to add "Change password" or "Help"...! Only really want is to remove the squareness!

    The image on my post above is a screen print from another VBA project which is PW protected but it def can be done somehow

    Thank you for your help anyways

    Cheers
    Tony

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    Tony:

    Is there a website where you have seen this done ? Please provide the URL.

    Thanks

  7. #7
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Sent you a PM

  8. #8
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    @Logit

    File attached, had to zip cause of size restrictions

    Cheers
    Attached Files Attached Files

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    When you open the attached example, click on Form 1 button. Form 1 will be displayed in the middle.

    Then click on Form 2 button and move it to the left of Form 1.

    Then click on Form 3 button and move it to the right of Form 1.

    Now the three forms are displayed so you can compare them, with and without edits.

    The three forms were taken directly from the project you sent me. FORM #1 is the closest you will get to achieving what you see in the project. It was taken directly from the project and not altered at all.

    Forms #2 and #3 were edited slightly to demonstrate the differences of editing levels.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Thanks Logit,

    Very well explained,

    I get Compile error when clicking the buttons, see pic

    cheers
    Attached Images Attached Images

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    What version of Windows are you using ?

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    See if this version will run for you :
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    the new file worked, thank you

    btw I am running windows 10, version 1709

    Back to the project...! did you see the login form pop up on the file I sent you? only the image is visible no box...! how did they do it

  14. #14
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    I presume there is another API call that would remove the User Form "drop shadow". The thin dark line seen on the right and bottom sides.

    I'll continue to search for it.

  15. #15
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Thanks a lot Logit, your assistance as been awesome Thank you.

    If you do find it, please do post it up


    Cheers

  16. #16
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    Will do.

    I tried to locate a means of using only the image as a replacement for the User Form .... no luck.
    The image can be inserted into an Image Control but the result is the same .... a little bit of the image control around the edges is viewed as well.

  17. #17
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Thanks again Logit,

    I am confident you can find the solution

  18. #18
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    Finally located the solution. Paste the following macro into the UserForm :

    Please Login or Register  to view this content.
    When you try the attached file ... click on Button 1 for the first form.

    NOTE: You will need to change the background color of the two text boxes to something other than white.
    Attached Files Attached Files
    Last edited by Logit; 05-18-2018 at 12:03 AM.

  19. #19
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    You´re a legend Logit!

    Thank you again

  20. #20
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Need your assistance again please

    Getting compile error!!!! see pic
    Attached Images Attached Images

  21. #21
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    That macro refers to another macro left over from an earlier project.

    You should be able to completely remove this entire block of code :

    Please Login or Register  to view this content.

  22. #22
    Registered User
    Join Date
    03-29-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: Login Form

    Thank you again,

    In the mean time I had decided to make that sub inactive just to see and it worked.

    many thanks for your kind assistance with this project.

    Cheers

  23. #23
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,468

    Re: Login Form

    .
    You are welcome.

+ 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] LogIn Form
    By tfilipe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2018, 07:46 AM
  2. Login Form
    By sn152 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2014, 01:34 AM
  3. Login form in VBA Excel
    By kvspawan19 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2014, 09:56 AM
  4. [SOLVED] Login sheet rather than login form?
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2013, 05:17 PM
  5. Login ID form not working
    By amangupts in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2011, 10:40 AM
  6. Login Form
    By phatus in forum Access Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2010, 09:56 AM
  7. login form
    By missing in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2006, 04:02 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