Poll: Show Advanced UserForm control - Virtual forms - to the world

Be advised that this is a public poll: other users can see the choice(s) you selected.

+ Reply to Thread
Results 1 to 9 of 9

Advanced UserForm control

Hybrid View

dageci Advanced UserForm control 11-30-2015, 08:40 AM
gmr4evr1 Re: Advanced UserForm control 11-30-2015, 06:51 PM
dageci Re: Advanced UserForm control 12-01-2015, 07:36 AM
Richard Buttrey Re: Advanced UserForm control 12-01-2015, 07:44 AM
dageci Re: Advanced UserForm control 12-01-2015, 08:53 AM
gmr4evr1 Re: Advanced UserForm control 12-01-2015, 01:05 PM
Richard Buttrey Re: Advanced UserForm control 12-01-2015, 01:59 PM
dageci Re: Advanced UserForm control 12-02-2015, 05:53 AM
dageci Re: Advanced UserForm control 02-29-2016, 04:15 PM
  1. #1
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Re: Advanced UserForm control

    Hello gmr4evr1 and thank you for your reply.

    This UserForm is a custom control that you can put on worksheet or on excel userform.
    I call it Virtual form because it does not exist in design time but it is created on runtime.
    Each Userform (or as I call it Virtual form) consists from 3 main elements:
    Grid, Edit and Buttons control.

    In order to know how and what to create, virtual forms engine needs to have definitions (that are stored in a file and created by Virtual form Designer).
    In this Designer:
    First we define Virtual Form name, description and the table (or worksheet) from where this Virtual Form gets and manipulate data (for now it supports Access, Excel, MySQL and MS SQL).
    Then we define a Grid and Edit control and the fields (from table or worksheet) that will be in this controls.
    And then we define what buttons we want to use on this Virtual form (Refresh, Filter, New, Edit, Delete, Exit,...., there are predefined buttons with actions or you can create your own in VBA (for example when you click on this button to populate excel cells with selected record in VirtualForm or....)).

    And voila the simple form with grid, edit, buttons, filter is created and ready for use.
    Sounds complicated, but it is not. My main guideline is that it is as simple as possible. It is easy to complicate things, but it is difficult to solve a complicated thing in an easy and understandable way.


    To use this Virtual forms in your excel workbooks there are many ways some of them:
    One way: when you put this usercontrol on your workbook or on UserForm it is a simple treeview control where you can create nodes and attach your Virtual Form to double click of this node
    Second way: You can simply call it from VBA code like this:
    VirtualForm1.ShowVirtualForm "MyVirtualFormName"


    For Advanced users there are also many events that are fired by this control in runtime like:
    BeforeFormOpen
    CommandButtonView
    Menu
    CommandButton
    TxtChange
    TxtValidate
    TxtCheck
    TxtLostFocus
    FlexChange
    BeforeSave
    AfterSave
    EditChange
    GenerateID
    TxtInit
    CommandButtonGroupChange


    With one line of code (SQL) you can show totals, counts,... (whatever we can do with SQL) in an auxiliary grid.

    You can also in runtime reorder and move and reposition the textboxes, columns of grid that are created by the engine

    You can also access these texboxes and labels thruu VBA code to get or set properties (Text, Caption, Backcolor, Left, Top,....)

    There is also an easy way to add relationships to create Master/Details like Order > Oreder Details, Order Notes,

    And more.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Advanced UserForm control

    Hello dageci and welcome to the forum.

    As described and shown in your picture it looks to be a very interesting use of Excel/VBA for more advanced form creation. This may well be useful to some here.

    Is this something you are sharing freely or is there a commercial aspect to it?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel 2007, Userform Textbox Date Format and Calendar Control Userform
    By riffology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 06:18 PM
  2. [SOLVED] Help on UserForm control
    By donnep in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2013, 01:03 AM
  3. UserForm (Advanced): Copying controls between tabs in a multipage
    By Jon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2012, 11:11 AM
  4. Advanced Textbox in UserForm - Keep Color of Font Same as Cell
    By abousetta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2011, 07:05 PM
  5. Running an Advanced Filter using Userform check boxes
    By gr6au in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2011, 04:51 PM
  6. Advanced UserForm
    By Blitskrieg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2010, 04:40 AM
  7. UserForm Control
    By DCSwearingen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2007, 10:48 AM
  8. Dim Userform Control
    By donbowyer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2005, 08:05 PM

Tags for this Thread

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