+ Reply to Thread
Results 1 to 7 of 7

Remove UserForm Borders and Close X

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Remove UserForm Borders and Close X

    I am trying to remove the Borders and Close Box from a UserForm so I can use it as a splash Screen.

    I have used the code suggested by Leith Ross

    http://www.excelforum.com/excel-prog...m-borders.html

    however, although this works, when the spreadsheet launches, the UserForm displays WITH the Border and Close box for about a second before then disappearing!

    Is there any obvious reason why this would happen?


    I am using Excel 2007/2010 under Windows 7.
    Last edited by HangMan; 07-17-2011 at 12:00 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Remove UserForm Borders and Close X

    Hello hangman,

    The UserForm is created first based on the VBA class design. The macro code waits until the UserForm is displayed, to obtain the window handle, and modifies it. Why your in a loop, I can only guess. You need to post your workbook or the code.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Remove UserForm Borders and Close X

    Hi Leith

    Fixed the looping problem...

    If I've read you correctly, this means there is no way around the border momentarily displaying before disappearing?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Remove UserForm Borders and Close X

    Hello hangman,

    On all my computers, this have never been an issue. You can try the code below and see if that helps. Change UerForm1 to the name of your user form.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Remove UserForm Borders and Close X

    Leith

    Thanks for that, however it made no difference, still have the border showing for a good 1 second prior to it disappearing... Strange.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Remove UserForm Borders and Close X

    Hello HangMan,

    If it appears for a 1 second or so then you are probably low on RAM. You may need to reduce the number of programs that are running.

  7. #7
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Remove UserForm Borders and Close X

    Thanks Leith Ross. Looks as though you were right, a re-boot seemed to have fixed the problem.

    Many thanks for your help, greatly appreciated - all working perfectly now.

+ 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