run macro

  1. M

    How to run macro automatically between specific time range daily

    1. I open my PC at 7 AM 2. I want to run my macro (Org90) at 9 AM 3. Then I want my macro (Org90) to run every 1 hour 4. At last I want my macro to stop working at 5 PM automatically daily. I searched all internet that I can, but I didn't get a full answer to my question. I know it is...
  2. A

    VBA Code to compare Dates, then run macro to match colums

    Hi, Hope I can get some help with adding code to loop through the dates in column A of Sheet1 & compare them to the dates in Column A, Sheet2. If the date on Sheet2 is greater than Sheet1 run the MatchColumns macro. Sheet1 accumulates jobs with recommendations through out the year. Sheet2...
  3. Z

    Run Macro on Each Sheet of Active Workbook

    The following code does not run across all of my worksheets. It seems to just run the same code on the first tab multiple times. Can someone help me fix this? My best guess is that that the ActiveCell member is causing this issue, but I do not know how to fix this. Sub...
  4. A

    Autorefresh pivot table on cell change

    I have a pivot table (Pivottable2) which I want to refresh any time the value in cell B3 is changed. I have used the code below but appears that I am doing something wrong. The name of the macro to refresh the pivot table is "refresht" Any help greatly appreciated Private Sub...
  5. F

    Run a Function

    Hi, I have function which is formating headers and works OK. Function Header() ..... End Function In sheet1 I added button. How to do that: - if I click on the button function will run and do formating changes?
  6. J

    Need to run a macro on all open workbooks

    I have a macro which fetches the input from the user once it runs and based on that input it does some activites. All i need is am running the macro in the first workbook and giving the inputs..Based on the inputs given the macro should run the same on all the other workbooks which is open...
  7. S

    Select cells relevant to a page, call macro, go to cells of next page and so on.

    Hello Friends. I'm looking for a way/code to automatically select the cells in Column 2 that have the same page number associated with them in Column 1. Then I want to call a macro and then repeat the process. I have provided the link for the 15kb macro enabled excel file with which I need help...
  8. J

    Simultaneously run Macro on Multiple worksheet? Please Help!

    I'm having the hardest time trying to figure out how to run the macro on multiple sheets simultaneously. Therefore, the data should update for all 4 sheets, but that doesn't happen. Instead only the first worksheet gets update. I know the issue has to do with the first couple of lines. Here's...
  9. C

    If ANY CELL is empty in Col "O", then run Module45... IF NONE are blank, run Module50

    Trying to figure out VBA Sub that will scan Column "O" starting at "O5" for any blanks/empty cells found.. <b>IF YES,</b> then run <u><i>Module45,</u></i> <b>IF NO,</b> then run <u><i>Module50.</u></i> NOTE: (don't want to include the blanks that may be present at the base of the...
  10. R

    Date and time picker to run a macro

    Hello all, I am a newbie and in need for some help related to this.</SPAN> I am using a DTpicker pointed to linkedCell “L10”.</SPAN> I want to run a macro every time a user selects any date at all ... and therefore changing the cell “L10”.</SPAN> I have found in other threads people were using...
  11. F

    Run Macro when Drop Down value selected

    I need to have my Fx macro run whenever a value is chosen from the drop down list in cell K9. I know I have seen how to do this but for the life of me I can't find a thread today that contains this info. The actual value chosen does not matter, I just need the macro to run every time the value...
  12. S

    Run macro on cell value change - cell is not active cell

    I want to run a macro whenever certain cell values change. About a month ago I was attempting to run the macro when the formula in a cell changed the cell value, but ran into problems that I couldn't solve, even with the help of MrExcel. I think because the macro kept changing various cells and...
  13. S

    Re: Run Macro on Cell Change via DDE change event

    Re: Run Macro on Cell Change via DDE change event I want to run a macro everytime a specific cell changes say A1, the cell changes in real-time from a source using DDE. I have had this working once before but I lost my notes and forget how to complete this.
  14. S

    Run macro based on cell value - syntax question

    I have my spreadsheet set up so that it tells me when conditions are such that I need to run a macro. I click a button that runs the macro and turns the "run macro" message off. Now I need to automate this function so that macro runs whenever it needs to, just like calculations that are...
  15. B

    Show userform when cell is selected

    I need to be able to make a macro run to show a userform when a cell is selected. Hopefully this will fix the solution to my problem. I dont want an user to be able to enter data into this cell unless its through the useform. The cells defined name is "LotNumber".
  16. S

    run macro on all files

    Normally when we record a macro in excel, it is applicable on one file. As such, we are required to run the macro in every file in the folder separately, which is very time consuming. I have 250 to 300 files in a folder with similar structure and I am required to perform various operations on...
  17. F

    Running macro via hyperlink

    Hi guys, I am trying to get a set of hyperlinks on a worksheet to run the macro 'Last_Row' I have written (below): Sub Last_Row() Sheets("Sheet 1").Select ActiveSheet.Protect Password:="Password", DrawingObjects:=True, _ contents:=True, Scenarios:=True, _...
  18. J

    Auto-Run Macro When Saving?

    I am looking for a way to have a macro run every time a file is saved? More specifically, I am developing a file that can be used on our receiving dock, and everytime an item is received and they put an 'x' into the 'Received' column, I want my macro that copies that row onto another sheet...

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