I have a userform that is working perfectly, but when I try to make it an add-in I can't even get it to load. When loading the userform as an add-in I get the error "Run error nr. '9'.: The Index is out of the interval" (freely translated from Swedish to English). The code I'm using to load the userform is
I've created a userform on one computer which launchs when I open the excel workbook. The userform contains comboboxs and a picture. But when i saved it on another computer and tried to open it and it errors. (Run-Time error 9). (Still works fine on the computer that created it). All references are to this workbook only. Userform is contained within the Forms folder of this workbook(not personal.xls) and the userform name is PDM_SPLASH1. Also, if i go into VBA I can see the form, but it wont launch when i try to play in manually. (Run-Time error 9)
Ive created a userform that I want to have input data into specific cells in my worksheet. I have the userform created, and some of the other VB stuff written, but it is far from being functional. I have come across the first of what to is to be many problems (Im pretty rusty at VB).
I have a button on my spreadsheet that is supposed to show the userform using this macro
[Code] .....
When I click the button, it breaks at "Form1.Show" giving me "Run-time error 424 : Object Required".
I have an excel 2003 template containing a userform that is displayed using the workbook_open event.
The userform causes excel to crash with file/path error 75. i have tried many suggestions given on ozgrid and several other forums with no joy.
When the userform crashes, the debugger stops on DataFormNew.show.
I have added stop commands in the initialise procedure to see what is going on and it appears that my userform has disappeared!
to upload the excel template and any other information required to get this sorted. its size is 765 KB which exceeds the size limit to attach to the post.
here is the workbook_open macro:
Private Sub Workbook_Open() 'On Error GoTo MyError 'Call UnProtectAll
'Dim frm As UserForm 'For Each frm In UserForms ' Unload frm 'Next
I created a form that my employees could use to log their work. When I toggle between the combobox and the qtytextbox I get an "invalid property value" error that debugs to the line of code that opens the userform. I have no idea how to fix this. The spreadsheet has a button that shows the userform. This code is:
Private Sub rectangle1_click() If frmLCWork.Visible = False Then frmLCWork.Show Exit Sub End Sub
The userform has a combobox for employees to select the completed "task", a quantity textbox and then an "add to log" button. The form code is:
Option Explicit Private Sub cmdAdd_Click() Dim sStep As String Dim Row As Long 'check for a task If Trim(Me.cbxTask.Value) = "" Then Me.cbxTask.SetFocus MsgBox "Please specify which task you completed." Exit Sub End If....................
See the attached sheet. I am trying to add together two figs which are linked to calculations which have formula built in to stop error messages when there is a 0 / 0 = #value type error. However when these two cells are added, if the cells are blank I get an error message. And if only one cell has a value, I get "" with my existing formula. what I need to do to get a result of 7 if for example cell A4 = "" + B4 =7. At the moment my formula shows "" in the sum total of these cells
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then Application.ScreenUpdating = True Unload Me RestrictedOptions.Show Else Cancel = True End If End Sub
Trying to use above code to unload active userform and show new userform when red X (close) selected by operator. With the code as is, the Unload Me leaves the form on the screen and displays the RestrictedOptions form. If i remove the Restrictedoptions.Show, the Unload Me does remove the original form.
having trouble with the details of actually making these features work for me. I figured out how to create a UserForm with a ListBox and 2 buttons, but I don't know how to proceed from here.
1. Populate the ListBox in the UserForm with a list of names from the sheet "Totals_Dropdowns", cells K2:K11
2. Make the UserForm pop up and enter the user's selection into cell C40 of the "Regenerate Request"
I know these are very basic operations, and I'm pretty sure I can figure out the rest of my problems once I can get past the above.
I have a userform button that when clicked loads another userform. I am getting a Runtime Error 13: Type mismatch on the line in bold in the code below
Private Sub cmdAdd_Click() Me.txtAdd.Value = Me.VarNo.Value VariationsForm.Show Unload Me End Sub
I do not get an error on the "Edit" button code which is similar so why is the above not working.
Private Sub CmdEdit_Click() Me.txtEdit.Value = Me.VarNo.Value VariationsForm.Show Unload Me End Sub
the spreadsheet needs to be copied to a directory called "C:downloads" as it contains a ODBC query to itself (In reality, this is a query to an External Oracle Database)
On loading, it should pop up a simple userform, with a combo and two command buttons, which when pressed takes you to a (hidden) tab that displays a pivottable.
All works well until I try to close /save when 60% of the time, Excel encounters problems and closes and will not load up the file the next time until either quit excel or disable macros. Messages include "file/path access error", "I/O Error" or get restarts excel.
On a casual run through, I expect you might report back that "All worked ok for me". Please can you give it a bit of a thrashing, comment out the userform show, save the file (frequently) becuase i assure you it will break ultimately!
This is a brand-new file and I've tried it on about 5 different PC running different versions of Excel and generally get the same result.
I'm trying to show a form from inside another form. Example: form1 has a command button and when clicked, I want it to show form2. But I always get a run-time error '32': type mismatch.
I have worksheet with cell A1 always change simultaneously (input from other source), in cell A2 I put formula, so value in A2 always change depending value in cell A1. The problem is I want to show that value A2 in userform VBA. I tray using textbox (in property textbox control source I set to A2) but not working because Cell A2 change from formula to static value.
I have a userform with multiple tabs. I have buttons on the excel sheet that correspond with the tabs. How do I get the buttons to open up their respective tabs in the userform?
For example: Button 1 opens Userform-Tab1; Button 2 opens Userform-Tab2; Button 3 opens Userform-Tab3; etc.
Right now they all open the userform, but open the first tab.
I have created a user form where I have two Dates fields. Date Leave (three comboxes, CmbDay, CmbMonth and CmbYear) and then I have written the following code
Private Sub Label4_Click() If CmbDay.ListIndex -1 And CmbMonth.ListIndex -1 And CmbYear.ListIndex -1 Then If IsDate(CmbDay & " " & CmbMonth & " " & CmbYear) Then MsgBox "You selected " & Format(CmbDay & " " & CmbMonth & " " & CmbYear, "dd/mm/yyyy"), , "Date selected"
[Code]....
I have got the code from there.
But I want the show the same date field in another field as Date Join. I have changed the names of Combo Boxes but it is not working.
I want to show the same combo boxes in another field. How do I do that?
I want to temporarily display a userform (maybe for 4seconds) when my spreadsheet loads.
I cannot grasp the ontime function, and from what I can tell most messages posted on here relate to using it for intervals, or to be used at a set time in the day. (I have looked at the Helpsheet for the Ontime function, but struggle to apply what is being said to my situation)
I bet you're getting sick of the "X" questions, and I have done an exhaustive search but the search filter kills searching for (X) or 'X' or "X" .. but nothing I did find is what I am looking to do. I have any # of userforms that when you click the "X" in the top right side, it will hide the userform... once.. Is there a fix to the code below to make it do it every time its clicked?
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode <> 1 Then Cancel = 1 UserForm15.Hide UserForm11.Show If CloseMode = 1 Then Cancel = 1 UserForm15.Hide UserForm11.Show End Sub
Like I said, I don't want to disable it, I tried that off of one of the posts I found and thats just plain annoying, I just want it to hide the one userform and show the other. This will do it once and then you can click it all you want and it wont do anything.. see the annoying trait above.. this lasts until you exit the program.. so the X button can be hit repeatedly though out the day. The userform 15 is visible, userform 11 isn't shown, IE not behind userform 15.
Can the userform be coded so that it loads somewhere other than where it appears. I know that the user can move it after it loads but it would look better moved on its own prior to it being used. I have coded ThisWorkbook which loads on a double click:
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean) UserForm1.Show End Sub
I need the userform to display over to the right and up a bit
I've got a sheet with 5 UserForms (1..5). Whenever I hide one with a command button there is always a piece of code securing that the basic UserForm1 will be shown in the end. But this is only so when the UserForms get hidden with the use of the command buttons. When the user simply closes the UserForms by usign the x sign he ends up with the active sheet and no UserForms present. How can I secure that closing the last active UserForm with the x sign will cause the basic UserForm1 to show up.
how to creat a userform with a button (1) to show anouther userform with a button (2). you click the button on 1 and it shows 2. then when you click the button on 2 and it shows 1. I'm having a problem with the second part.
I have aworkbook with Employee details data sheet. And, I have built two userforms to search and view the employee’s full details. I don’t know how to link the rowsource for combobox and textbox.
I have attached the excel file of what I'm trying to accomplish.
I need a macro that will show a userform if the value of any of three possible chekbox's is true. However if more than 1 checkbox is true I still only need the userform to be shown once. I think a goto command would work, or if I could simply say If-then-End Sub.