+ Reply to Thread
Results 1 to 6 of 6

Remove Title Bar from a UserForm

  1. #1
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Remove Title Bar from a UserForm

    Is it possible to take the headers of a UserForm. I mean the bit that can have a form name and the little cross on the top right hand corner.

    Can this be done, like in Access?
    Last edited by JezLisle; 04-02-2009 at 04:06 AM.

  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 Title Bar from a UserForm

    Hello JezLisle,

    Yes it can by using API calls. Copy the code below to a Standard VBA module. You will need to place a call to the macro RemoveCaption in your UserForm Activate Event module. A sample appears below the macro code.
    Please Login or Register  to view this content.
    UserForm Activate Event code
    Please Login or Register  to view this content.
    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-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Remove Title Bar from a UserForm

    Thanks for that, it works a treat

  4. #4
    Registered User
    Join Date
    08-26-2016
    Location
    Vancouver Island, BC
    MS-Off Ver
    Microsoft Office 10
    Posts
    1

    Re: Remove Title Bar from a UserForm

    Thanks this is just what I'm looking for! I'm fairly new at working with VBA. I pasted the above code into a module and tried to run it but got a message saying that I needed to make changes in order for it to work with a 64 bit system. Could someone please let me know what changes would be required. I'm running Office 2010.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,963

    Re: Remove Title Bar from a UserForm

    JoJoDo,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

  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 Title Bar from a UserForm

    Here is the macro code for the 64 bit Excel running on Windows 64 bit operating System.

    Please Login or Register  to view this content.
    If you are running 32 bit Excel on Windows 64 then use this code...
    Please Login or Register  to view this content.

+ 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