public sub

  1. M

    Command Button on Userform not working

    Hello All, I found a macro that creates an outlook appointment, this code works perfectly inside a module. I then copied this code and pasted it inside a command button in a userform, but when I run the form and click on the button, nothing happens as if there's no code inside the button...
  2. N

    Better Performance

    Good Morning Everyone! (at least at the moment where I am located), I am starting to get pretty deep into my current project, and I am having to take into account of the performance of my macro. I have 2 arrays - Both are 2D. One is 360x4 and the other is 120x4, and I have a seperate...
  3. F

    Public sub in a userform? Why is it not possible, or is it?

    Hi there, I am having a simple issue, I am not being able to call a sub that is in another userform. On userform1 I have this sub I use to load information to the userform. (It was before declared as Private, but I thought if I declared it as Public It would solve the problem) Public Sub...
  4. Default300

    ?Scope of Public Sub Procedure In UserForm Module: I Can Not Call it From Worksheet Module

    Hi. I want to write a Sub. I want to Call the Sub from a UserForm Module (CommandButton_Cilck Event). I want to Call the Sub from a Worksheet Module (Selection_Change Event). What Type of Module must the Sub be in? What Type of Sub should it be? (Presumably Public) Currently, my Sub is a...

Some videos you may like

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top