MsgBox Centred Over a Userform

I have recently developed an Excel-based analytical tool that is designed to share the desktop.  The tool provides the functionality to position the Excel window either on the left or right side of the desktop, occupying about 1/2 of the screen.

For this tool, there are several userforms used that are positioned within the Excel window, respecting the left / right orientation when used, with the potential for several userforms to be open at the same time.  I felt that the aesthetics for userform presentation was just not right initially because when the standard Msgbox prompts were issued, these would appear in the centre of the screen, rather than the userform to which the prompt referred.

Continue Reading: MsgBox Centred Over a Userform »

A VBA Calendar

Just about every application needs a calendar of some sort. There are calendar controls available that feed back a date, but these are typcially from some version of VB or another third party. I have been using my own VBA calendar for my applications, because I needed some features that the "other" controls did not provide. 

Many of my application requirements have needed start and end dates and different periods – typically weekly or monthly- to set up reporting criteria.  I needed the capability to restrict date selections to ensure their accuracy.

Continue Reading: A VBA Calendar »

Persistent Userform Positioning

When using Userforms within Office, you have 4 options for its display position. (the StartUpPosition property)

0 – Manual, where you'll need to provide some values for the left and top positions,

1 – Centre Owner, where the userform will be centred within the host application screen,

2 – Centre Screen, and

3 – Windows Default, in the top left.

Continue Reading: Persistent Userform Positioning »

A User-Defined Popup Menu

I am in the process of constructing an Excel-based product that hopefuly will one day hit the eCommerce market.  Among other things, this product will allow its user to define their own popup menu.

Continue Reading: A User-Defined Popup Menu »