subroutine call

  1. D

    Run VBA Code When 'Checking-In'

    Hey guys, I am working on a workbook that is connected to a server. (The Check-In and Check-Out features are enabled) Is there a way to run a few macros in the event that someone checks the file back in? Initially I was using something like this to run some routines when the workbook was...
  2. S

    Calling Subs with variables that are set

    I have the following 2 subroutines and I'm getting a runtime error "object required" when I am calling "renamesecurities". I think the problem is coming from which Sub i need to define the variables in, but am not sure. Maybe the problem is I need to define more variables? Sub format() '...
  3. R

    Macro's not showing up in macro table

    I have a couple subs that call other subs that do not show up in the macro table. I guess because the sub simply contains arguments??? I would like to assign this to a button. Anyone know how I can get it to show up in the macro table? ****************************** Sub RunSolvers() If Not...
  4. B

    Code mysteriously failing to initiate after selecting the "Cancel" option in a message box.

    I have one subroutine that calls many other subroutines based on a number of buttons/conditions I've set up in my Excel worksheet. Below is a truncated example of this. Public a as Integer Public ans as Integer Public Sub StartingMacro() If Application.Caller = "button1" Then Call Macro1...
  5. T

    Calling a Subrountine

    All, I am not a programmer. But, I need a little programming help. I created an Excel Macro. I need the first Macro (Name_IP) to call another Subroutine/Excel Macro (IPSplitAddresses). When I use test data and the IPSplitAddresses as a Stand Alone Excel Macro/Subrountine, the...
  6. L

    Using IF statement to Call a subroutine

    Hi all. I would like to call a subroutine only if a cell on the active sheet is not empty. So far I have tried the following: Range("A2").Select If R1C1 <> """" Then Call Subroutinename If A2 <> """" Then Call Subroutiename If LEN(R1C1) > 0 Then Call Subroutinename None of them work...
  7. A

    Need help in repeating Chart Build across multiple series

    Hi, I am a noob in VBA, and this is the first time i am trying to use VBA for charting. I have 5 sheets, with 32 to 34 rows of data. For each row of data, on a separate sheet, I have calculated the minimum & maximum value, to be used set the chart Axis scale. The tables used for building the...
  8. E

    Subroutine introspection: Can a sub know what sub called it?

    In Excel VBA, if subroutine A calls subroutine B, is there a way for subroutine B to know that subroutine A was what called it? I mean this for run-time, so not talking about watch window. Application.caller seems to give info in calling VBA from Excel, not for info about a subroutine calling...

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