Creating An Interactive Userform
Jul 8, 2009
I am a novice VBA user, with a more-than-basic knowledge.
I have created several userforms in the past, but they were all “static”, meaning, the user was allowed certain options from a variety of combo boxes, and after filling all the data, the result was migrated into a sheet (database).
Now, I am trying to create an INTERACTIVE userform in which certain combo boxes will become available based on a user’s selection in a previous combo in the same form.
For example:
If - in a “Payment” combo - the user will select “Check”, 3 new text boxes will appear (Date, Sum, Bank code) and the user will fill certain data related to his selection.
If, on the other hand, the user will select (in the “Payment” box) the option “Installments”, 3 other boxes will appear (Number of installments, first installment month, sum per installment). These boxes can either be text boxes of combo boxes, and here the user will select/fill the relevant data.
Naturally, the previous boxes, related to the “Check” option, will be made invisible.
Personally, I don’t care if ALL boxes are always visible, as long as they are activated or disabled (grayed out) based on user’s selection in the “Payment” combo.
The next step will be to migrate the selected/filled data from the form back into a sheet, where the data will be placed in different columns based on the final selection the user made in the form.
View 9 Replies
ADVERTISEMENT
Dec 6, 2007
I am trying desperately to link activex checkboxes I have in an excel spreadsheet to a textbox. I need a textbox in cell K11 to appear whenever the checkbox in cell H11 is marked. Is this possible to create in excel using VBA?
View 9 Replies
View Related
Apr 7, 2006
I'm trying to create a piechart to display the variance from project deadlines.
Red > 10 days
Yellow 5-10 days
Green < 5 days
I have the macro written and the piecharts are being created however they seem to lack functionality. I would like to be able to click on a segment of the chart and have it display the data (projects) that have that status. Any ideas on 3rd party software, JavaScript, any other methods of creating such an interactive pie chart?
View 4 Replies
View Related
Apr 10, 2007
I would like to know if it's possible to create an interactive map with excel?
I explain my case: I have a map of UK, that is divided into 8 regions. For each region there is a value of rainfall ratio. I would like that, when the user click on a region of the map, the corresponding value of rainfall ratio is going to a cell or wherever, such that I can use it for further calculations.
View 4 Replies
View Related
Apr 18, 2008
I am looking for interactive mathematical kid's game that can be created in Excel. Can someone please help me create one or direct me to a sample?
I saw one example below but this is not excel based. Can a similar one be created in Excel?
[url]
View 9 Replies
View Related
Feb 13, 2007
I'm looking to have an interactive calendar created that when a specific date is entered in a cell,...example(A1)
The calendar at the top of the screen will reflect 3 months out (in a standard box looking format with the starting day highlighted in Bold. Imagine 3 calender boxes (always 3 months) and when you enter a date in cell 1,...(say 6/07/07, the calendars at the top adjust automatically so that the first box now reflects June and has the 7th day in Bold...the other two boxes now obviously reflect July, and August.
View 9 Replies
View Related
Jul 28, 2008
I've just read up on interactive charts and have got that sorted for my worksheet. But I have a slightly more complicated issue now...
The worksheet Logistics has results for 76 different tests and these tests have been taken multiple times. Hence, I can logically have a trendline of results for every test i.e. Test 1: 1/1, 2/2,3/3 etc...
I'll go nuts creating 76 charts...and it's a terrible messy way of getting the user to see how he's fared over the number of times he's taken a particular test.
What I'm looking for is a way for the user so indicate which test he wants to see the results for and the relevant results to come up. In other words, on choosing the trendline of results for a particular test. Possible?I saw something similar on a website but am not sure if it was relevant...
View 9 Replies
View Related
Feb 5, 2009
On a worksheet i have a list of names in Column A the list length can vary this is why i want to create a userform using VBA. The form just wants a checkbox with name next to it for each name in column A. If the checkbox is ticked I want a 'Y' in Column B next to the corresponding name.
View 4 Replies
View Related
Nov 3, 2013
I am trying to create an interactive dashboard.
I am attaching a sample data file that contains two tabs (data and dashboard). By looking at dashboard tab you will know what I am trying to build. Based on the drop down values I would like to populate the data on the dashboard tab.
sample data.xlsx‎
View 11 Replies
View Related
Dec 6, 2013
[URL]
Basically I’m trying to create a login userform that launches once the database opens.
Userform = LoginTextbox = UserformTextbox = PasswordCommand Button = UserloginCommand Button = UsercloseSheet containing passwords = Userpasswords
Usernames are stored vertically in the A column, and Passwords vertically on the B column both starting from row 1.
I’ve been using code found at [URL] but I’m struggling to make it work. Some of the variables listed below may be useless but I’m not entirely sure so I’m sceptical about removing them. !
VB:
Option Explicit
Dim ws As Worksheet
Dim Userpasswords As Worksheet
[Code]....
View 5 Replies
View Related
Aug 17, 2005
I am a total noob when it comes to userforms. I want to create a userform with a simple combobox that contains 4 different selections. Along with this combobox will be a Submit button and a Cancel button.
View 6 Replies
View Related
Sep 4, 2013
I have created a UserForm with 10 text boxes. 9 are input fields and the 10th is a large comments box. I have designed the form so that entry's can be added, searched for and updated. However, I would like all previous data to be stored as history in the 10th text box.
View 5 Replies
View Related
Dec 11, 2013
I just need to make a user form for entering data in one of the sheets ( Pending Confirmed Orders ), requested user form should be used to enter the orders information in columns ( each column in new entry ) and just the rows ( from 6 - 21 ) with noting that row no 16 is to link external pdf file as you will see.
File : [URL] ........
View 1 Replies
View Related
Jul 29, 2008
I would like to add something to my workbook which, when called, gives you current time in Tokyo, Australia, USA, London, Europe (for example).
I am trying to work out what would be best.
Would it be possible to create this on the Status bar?
Alternatively, i guess a Userform shown as modeless (but i am not sure if the controls holding the times will update.
View 9 Replies
View Related
Jul 22, 2005
I'm making a form in excel to retrieve a number of welds. This number needs to be passed on to the next form to dynamically create an identical number of input fields (a set of text boxes and labels essentially). Any ideas on how I might do this? Is it even possible? I would like to avoid having 100 (my assumed maximum, it could get changed) sets of input fields and hiding the unused ones,
View 9 Replies
View Related
Jun 3, 2014
I have created a dashboard in excel and want to convert it into an interactive web page.
View 3 Replies
View Related
Sep 19, 2012
I am looking for a way to manipulate xy data graphically by moving points in an excel scatter plot. This functionality was present in older versions of excel, but I can't seem to do it in the MS office 2010 version.
View 1 Replies
View Related
Dec 28, 2009
I am working on a label printing set-up for my work. So far I have completed the userform that formulas will be entered on and printed from. I had an idea of being able to save these formulas for recall later. I included “Save” and “Recall” buttons on the userform. My plan is to have my co-workers click on the “save” button and be able to enter an additional piece of data and have everything saved to another worksheet labeled “database”. If you look at the said sheet you will see a column for “customer”, “color” and then the colorants. Due to the wide variety of colorants and quantities available, I set it up so that I have the colorant and under that Oz and 48ths. I am trying to figure out a code that will populate that across the row.
Then I want to be able to push “recall”, find my customer and then color in a combobox and have that populate my label.
At this time I am stuck. Part of my problem is I don’t quite know the terminology to google.
Attached is the file I am working with. The only sheets that need concern anyone are "main" and "database". The others are from the original file and I will be deleting those once I am done.
View 11 Replies
View Related
Jun 17, 2011
I am trying to create a "mainmenu". On a Userform using API calls.
Created a Userform and named it Form1.
Added a command button to the form and named it Command1.
In THISWORKBOOK code:
Private Sub Workbook_Open()
Form1.Show
End Sub
[Code] .........
I open the file and Form1 is shown with its command button. When I click the command button I get an error:
Run-time error 49:
Bad DLL calling convention.
What is the correct convention?
View 4 Replies
View Related
Nov 21, 2011
How do you create a reference number to be posted in a userform2 that is opened from an earlier userform1 where you have entered some initialisation data and generated a source reference number. ie set of data has reference X and there will be y items in that set want references in form X01 to Xy (y unlikely to exceed 20). Want to put references 'X01' into the userform2 and cycle through data entry in userform2 from source reference X01 to Xy. (I'm having problems with the transfer from 1 to 2!)
View 2 Replies
View Related
Jan 22, 2010
I have a userform that creates labels and checkboxes for those lables on the initialize event based on an if statement. I would keep getting an error on a line where I try and use the name of one of those created checkboxes of "variable not defined" as if it hasn't been created, but it was.. Here is the code for the creation:
'Option Explicit
Private Sub UserForm_Initialize()
'dynamically add the tickers and funds based on if there is any data inputs for them.
'declaring variables
Dim lbl As MSForms.Label
Dim i As Integer
Dim x As Integer
Dim newcheckbox As MSForms.CheckBox
'selects the summary page
Sheet1.Select
For i = 7 To 65
If Cells(i, 3) "" Then..................
View 9 Replies
View Related
Jul 9, 2014
I am working on a code which works, however, its is not working entirely as i intended. In this example, the body of the email should contain content from textbox.
I have 3 text boxes, not all are expected to be filled out. So if only textbox1 is filled out, the body should only include information derived from textbox1.
Whats happening now is that even if textboxes 2 and 3 arent filled out, the body of email produces blank formulas from textboxes 2 and 3. So how do i fix this code so that if I enter data into textbox1 only, the body of email will not include empty formulas? Ive also attached a copy of the Produced email file. Code in question is in red font
Attached Image : 7-9-2014 11-21-35 PM.png
View 4 Replies
View Related
Feb 21, 2014
On the attached spreadsheet, ormula on 'UserForm2'.
When I hit the 'Submit Changes' button I want a formula so that it will look up the product row in Product List (Sheet 1) that is select in the ComboBox1.
Once this row has been found I want the values in TextBox1 to be copy and pasted into Column D of that row and value of TextBox2 to be copy and pasted into Column G of that products row.
View 10 Replies
View Related
Aug 16, 2013
I'm using the following code to create a customized userform, and it works perfectly on my computer, as I've enabled all macro settings.
Code:
Function GetOption(OpArray, Default, Title)
Dim TempForm 'As VBComponent
Dim NewCheckBox As MSForms.CheckBox
Dim NewLabel As MSForms.Label
Dim NewCommandButton1 As MSForms.CommandButton
[Code] .......
However when my coworkers need to use the code it creates an error, as the VBA project is unsafe.
Now my question is, can you write some code that enables all macro settings temporarily, in such a way that my coworkers can use this code?
View 4 Replies
View Related
Oct 13, 2008
I want to highlight the unprotected cells as seen in the attached PDF document in excel 2007.
View 14 Replies
View Related
May 9, 2009
I've created a userform following the tutorial http://msdn.microsoft.com/en-us/library/aa192538.aspx And a Find button which reads a string from a textbox, searches for it on the worksheet, and then displays the data for that row in the userform. I'm trying to work out how to do "Find Next", and it seems complicated. I know there are other techniques, such as filtering, or displaying all the found data in a dialog for user to choose which one to edit. But these are not suitable for my project. Here's the code for my Find button
View 5 Replies
View Related
Oct 22, 2007
I have some experience with excel, but until now have not ventured into VBA and macros.
I have a workbook which will have the following sheets:
1.Absence Summary sheet - Summarises data from each employee's individual sheet.
2. Template Sheet - A sheet formatted as an absence record sheet, but without data.
3. Individual employee Absence record sheets - Based on the Template sheet.
I have read with interest the various posts and help files on User Forms & Macros, but have got a bit stuck.
My Aim: ....
View 11 Replies
View Related
Dec 22, 2008
I am trying to build a selection for a procedure to use.
View 2 Replies
View Related
Jul 16, 2012
I have created a userform and a command button to bring up the user form but when I click on the command button and the user form pops up I am not able to enter any data, the entire page freezes
This is the code
Private Sub CommandButtoncancel_Click()
unloadme
End Sub
Private Sub CommandButtonOK_Click()
With Workbooks("RETS results version 2.xlsm")
[Code] ......
View 1 Replies
View Related
Jun 15, 2009
This is weird - if you delete a sheet that contained a control then
a. showing a modeless userform resluts in a userofrm that goes invisible at subroutine End
b. public variables lose their value
These things do not happen if the sheet did not contain a control. Attached is an example file - put the inputfile.xls in your default file location (or add a path in the code) then open the ProblemDemo.xls and run the main macro to see it fal - isthis another Excelbug I've found?
View 9 Replies
View Related