sub procedures

  1. T

    Using 'If Then' when a procedure is called

    Hi, I'm using a large excel model that uses a datadump function to move data from inputs into a data dump sheet. I've added a tracker to the model to track changes made to it and now the data dump function is really, really slow. Is there a way to use If and Then with sub procedures so I...
  2. B

    Userform Controls VBA

    Hi All, Need your help I have 48 Labels on a userform with the name Day1,Day2,Day 3 Ect. Ect. Day47 and Day48 I want to avoid having 48 Sub Procedures example below Private Sub Day1_Click() Userform1.Hide '>>>Call Function and Call Sub Will Go Here<<< End Sub Is there a way to have a...
  3. D

    Error handling with nested subroutines

    I have a Sub procedure that calls, in sequence, 5 other sub procedures:- Sub Analyse On Error GoTo ErrHandler: Call Sub_A Call Sub_B (output from Sub_A) Call Sub_C (output from Sub_B) Call Sub_D (output from Sub_C) Call Sub_E (output from Sub_D) ErrHandler: End If Err.Number <> 0...
  4. AT--o

    Sub that takes the value of a function

    Hi. In excel 2007. My function takes its arguments from cells on the same row that it is inserted. I just copy it down. The problem is I need to change the Interior of this cell (the one containing the function) according to values that while taken from operations between the arguments are not...
  5. Maverick99

    To Call a Sub from a Case Statement

    I have run across some code that uses Case Statements, based upon a user's Button Selection from a UserForm. This is located in the UserForm Event Module. I thought this would be straight forward to have it call a Sub "WriteToLog," if the Case Statement is true. However, it's not working for...

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