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?
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.
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.
UserForm Activate Event code![]()
Please Login or Register to view this content.
![]()
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 Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Thanks for that, it works a treat![]()
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.
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
Here is the macro code for the 64 bit Excel running on Windows 64 bit operating System.
If you are running 32 bit Excel on Windows 64 then use this code...![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks