Greetings,
I am trying something new and wanted to share my ideas and get some feedback and potential resources that could improve results before I jump into construction of userforms and subroutines.
I would like to build a tool that is GUI friendly using Excel Userforms and VBA subroutines. What I envision is a userform with potentially multiple tabs that allows assignment of a number of integer variables as well as other types of variables. With the variables defined I would then like to be able to select a variety of subroutines to process sheets of data given defined variable inputs.
When I create a new userform I can view the object and the code. The userform sub is default "private" along with added textboxes, etc. I would like to declare everything public for the sake of ease and eliminating the potential hassle of experiencing constraints in accessing defined variable data in the userform needed in a data processing subroutine. Is there any good reason for retaining a private sub as an individual user of a machine with disregard of another entity executing macros, viewing information, etc.?
I would like to add stuff to the userform and allow for the assignment of various types of variables(via dropdowns, manual entry, and checkboxes) to be used in one or more data processing type public subroutines. I would also like to include buttons that run public subroutines to the userform, and most importantly create an environment that allows for any and all variables defined in the userform to be accessed by subroutines (also with execution buttons within the userform) processing of numerical data.
Ultimately I would like to be able to launch the userform from a button on a worksheet in a workbook.
Not totally sure what I am looking for here, but maybe if there are glaring pitfalls that the reader of this thread has experienced you could share some of your userform experiences, resources, etc.
Thanks!
I am trying something new and wanted to share my ideas and get some feedback and potential resources that could improve results before I jump into construction of userforms and subroutines.
I would like to build a tool that is GUI friendly using Excel Userforms and VBA subroutines. What I envision is a userform with potentially multiple tabs that allows assignment of a number of integer variables as well as other types of variables. With the variables defined I would then like to be able to select a variety of subroutines to process sheets of data given defined variable inputs.
When I create a new userform I can view the object and the code. The userform sub is default "private" along with added textboxes, etc. I would like to declare everything public for the sake of ease and eliminating the potential hassle of experiencing constraints in accessing defined variable data in the userform needed in a data processing subroutine. Is there any good reason for retaining a private sub as an individual user of a machine with disregard of another entity executing macros, viewing information, etc.?
I would like to add stuff to the userform and allow for the assignment of various types of variables(via dropdowns, manual entry, and checkboxes) to be used in one or more data processing type public subroutines. I would also like to include buttons that run public subroutines to the userform, and most importantly create an environment that allows for any and all variables defined in the userform to be accessed by subroutines (also with execution buttons within the userform) processing of numerical data.
Ultimately I would like to be able to launch the userform from a button on a worksheet in a workbook.
Not totally sure what I am looking for here, but maybe if there are glaring pitfalls that the reader of this thread has experienced you could share some of your userform experiences, resources, etc.
Thanks!