controls

  1. F

    VBA Userform Control("ComboBox" & i) issue and calling moduel

    Hello, Why won't "control()" work inside a moduel which is called uppon from a click action of a button?? Basically this code works fine: (inside a module and the userform button calls this macro) Sub test1() If UserForm1.CommandButton1.Caption = "Unlock" Then...
  2. S

    Double-sided scrollbar control?

    Hi Guys, I was wondering if there's a such widget (in excel 2010) as a double-sided scrollbar control (activeX probably). Basically, I have a range, and I want to control the lower and upper limits of the range by dragging the 2 ends of a single scrollbar widget that has 2 sliders, one for the...
  3. D

    Looping thru controls on a form

    I have a series of checkboxes on my form, chb1, chb2 ..... chb10. I use some vba code, "for each ctl in controls" that goes through each checkbox. Ideally, I want to traverse each control in the same order (chb1...chb10). For some reason, it loops from chb1, chb2, chb3, chb4, chb6...
  4. Symmo

    Macro & Lookup to Paste Values

    Hi, I have several Macros on this theme I would like to create all with the aim of copying a column and pasting values elsewhere in the worksheet according to what the current month is. Say I have a cell B2 with a dropdown of Months (Aug-Jul). I have a range "Spend_In_Scope_Forecast" which is...
  5. ClimoC

    Referencing a U-Form control from another U-Form/Class, via variable

    Guten Tag As a work around to the loss of the Calendar-Control in 2010, I've sourced (googled) a class 'Calendar' with a nifty wee Userform (anyone who can help with this will be aware of such things) So I have several non-modal userforms in my App, some of them have date-fields that require...
  6. K

    User Forms with runtime controls

    I have a userform that asks the following- Equipment Type: [ComboBox] Qty: [TextBox] I have the code that opens the form and all of the initial controls - it is rather long but this is basically what it looks like: Private Sub UserForm_Initialize() With ComboBox_BoilerType...
  7. X

    Strange: "For Each Ctrl In UserForm1.Controls" does not work

    Hi all, I have encountered the following weird situation. The following codes run well in the IDE (when we click the Green Play button). But the codes won't execute when actually using the excel file - after open the file, click the the "START" button, then a userform will be shown. There...
  8. S

    Controls("insert...") Run-time error '5'

    I am trying to use the following code but I am getting 'Run-time error '5': Invalid procedure call or argument' at the line of code which should disable the 'insert' Could anyone give me any advice. When trying to find help for this issue I have found the line of code numerous times and people...
  9. S

    Controls Collection not working in Excel 2003

    Hi guys, I wrote some code using Controls Collection, let's say: UserForm1.Controls("cbBeg" & sTag & c).Value = wsTasks.Cells(iWiersz, b).TextThis code works in Excel 2007 I've tested it also in 2002 and 2003. But when I sent my application to another Excel 2003 user he's got Runtine Error at...
  10. T

    Accessing HTML controls in Excel

    Hi, I cut and pasted an online survey from my website into an excel spreasheet. The page has a number of checkbox options which when one is selected, the others in the group are deselected, as expected. I can 'see' the checkboxes as "Control 1" to "Control 19" using the code below. What I...
  11. P

    Search in subset of collection

    Hi guys, Does somebody knows if you can search for controls in a userform collection, like in: / Dim ctl as Control / For Each ctl In UserForm1.Controls /"do action" but can exclude one specific subset of the collection of the action ? Like the subset: /...
  12. W

    Controls change size when clicked

    Hello, I have a Excel App that developed in VBA and the controls on one particular worksheet automatically resize when I click them. I have changed the lock property to true and autosize false is set to false. But still the text in the button gets smaller and smaller everytime it is clicked...
  13. S

    UserForm_Initialize creates Late Bound Controls BUT btnClose_*******() does nothing!

    I'm trying to get around VB library/reference issues by using late binding of controls/activex objects on a userform (instead of a worksheet) I cant get my button Click methods to work at all. I've even added a msgbox in its code to see if it gets called & it doesnt. Any ideas please? I...
  14. B

    Using VBA Controls in a UserForm

    Ok, so I have the following code that checks the textboxes within a Userform and if there is a blank text box, a message box pops up prompting the user to fill them out. The problem is, this code only seems to work in the userform from a top-down approach. In other words, if you don't fill...
  15. G

    How to change the value of a control from a VBA module?

    Dear All, In an Excel 2003 workbook, I have several sheets. On one sheet I have Option Buttons. I am trying to change the value (true or false) of the buttons with code in a VBA module. I had code in Module1 to set the value of an Option Button: OptButInternational.Value = False I get a...
  16. T

    Conditional Disabling of ActiveX Controls

    First of all many thanks to many of you for providing me with amazing solutions to my large and small Excel problems. So far I never had to post and so I never had an opportunity to thank you before this. What I want to do disable certain ActiveX toggles depending on the value of a specific...
  17. M

    OLEObjects will not work with grouped controls?

    Hi Everybody. I am trying to set all checkboxes and radio buttons on a spreadsheet to False every time a drop down list value changes and I am using the following code: Dim ole As OLEObject For Each ole In ActiveSheet.OLEObjects If ole.progID = "Forms.CheckBox.1" Or ole.progID =...
  18. R

    Available Controls

    In Excel 2007, I am trying to add the Timer Control which I have available to me in VB 8. When I choose the option to add Additional Controls, a long list of Controls pops up which I can add, none of which I need. How can I make a control available to add as an additional control to add to my...
  19. craig.penny

    Programmatically remove a control from userform

    Greetings, Suppose I have a userform named myUserForm and a checkbox on it named myCheckBox. How on earth do I remove myCheckBox from myUserForm at run time? I've tried every which way I can think and I always get "error 444". Some things I've tried are: myUserForm.Controls.Remove...
  20. H

    Lost user form controls in design mode

    Im creating a reasonably sized user form with a number of frame controls with inset option buttons. However in edit mode it is easy to either a) lose an option button control within the frame, or b) manage to drag the frame and lose it as it seems to 'bump' into another frame. Edit 'undo' will...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top