+ Reply to Thread
Results 1 to 4 of 4

X(Close) Button Disabled in Userform

  1. #1
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    X(Close) Button Disabled in Userform

    Hello Everyone,

    I need small in userform can anyone please help me out from this problem.

    My question is, In Excel VBA Script, when we insert Userform in userform top right side small X button will be there I mean to say close button , i want disabled that button I tried in properties but i unable to do that please can anyone solve this.

    Why i want this is suppose if we create login user id and password form , without entering the details of username and password if we click on that top right side button user easly can access the excel sheet.

    Thanks,
    mohammad Naveed.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: X(Close) Button Disabled in Userform

    Perhaps this link could be of help?

    http://www.j-walk.com/ss/excel/tips/tip80.htm

    Alf

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Thumbs up Re: X(Close) Button Disabled in Userform

    Thanks alot Alf its Nice.

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: X(Close) Button Disabled in Userform

    Hi Arlette,

    Thanks for your quick reply and i used ur code and its working nice once again thanks Arlette.

    If you don't mind i need one more small help , below is my question.

    I want to extract file name which is avialable in particular folder, suppose in C:\temp\ folder total 3 excel files were there with the name of 2054, 2365, 2145 and that would either xls, xlsx , xlsm whatever it may be. I need this file name 2054, 2365 , 2145 in assigned range.

    I used this below code but its asking to select path and dialog box also opening, i dont want to open browse to folder option if i run code automatic all the available file name should come.

    Please Login or Register  to view this content.
    Thanks,
    Naveed.
    Last edited by jeffreybrown; 11-05-2012 at 08:50 AM. Reason: As per Forum Rule #3, please use code tags…Thanks.

+ 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