combine macros

  1. D

    Make One Macro Out of Two

    I would like to have one macro instead of calling to another. I just do not know how to do it. Thanks For Your Time Sub Copy_Paste_two_rows() With Sheets("XXX") If Range("C7") = "BTC-LTC" Then .Range("A" & Rows.Count).End(xlUp)(2).Resize(1, 10).Value = Range("A7:J7").Value ElseIf Range("C7")...
  2. ajjava

    How to combine these two procedures into one?

    I have two procedures that will ultimately be run on the same workbook. (see below) I've gotten each procedure to work on its own. Now I'd like to combine them into one. I tried to have the 1st proc call the 2nd proc, but that failed (no doubt because of me). I then tried to modify the code...
  3. Z

    Run same excel macros on multiple excel files

    I am looking to combine these macros. I need this macro to scrub through a folder and open up each workbook and update the column headings. The only catch is I need the two different tabs to get different headings. The two sheet names within each workbook are called "CRM" and "Aspirational" Sub...
  4. J

    Combine multiple simple modules into 1

    Hello, I have created 3 Macros that I have combined into a macro button - but I wanted to see if there is a way to "combine them" into one sub and make things more efficient, keeping the same order. Unfortunately, I am somewhat of a novice so I am not sure how to go about this. Any assistance...
  5. V

    Need help in combine Macro's

    I want to combine two macros which are as follows I've following macro to print letters with a data available in data sheet... Sub PrintForms() Dim StartRow As Integer Dim EndRow As Integer Dim Msg As String Dim i As Integer Sheets("Form").Activate StartRow =...
  6. A

    Run Different Marcos based on Day of the Week

    Hello All, So I am trying to run 3 different macros based on the day of the week. The code I found worked when I just used one day but when I entered the same code in for all 5 days, I keep getting the error: Block If without End If. Here is the code I have so far: Sub Datetest() Dim sDate...
  7. A

    Cannot get 2 worksheet change macros combined?

    Hello for the life of me I cannot get these 2 worksheet change events combined. Below is the code of me just pasting one after the other in the same sub. They work seperately but the bottom one doesnt work when they're combined. Thank you. Private Sub Worksheet_Change(ByVal TARGET As Range)...
  8. T

    Macro to combine multiple worksheets into a summary workbook without merging the worksheets

    I am trying to figure out how to combine 2 macros. The first macro allows me to select the file path I need, and the second macro will use the file path from the first macro and pull the worksheets from all files in the file path and combine them into 1 summary workbook. What is the best way to...
  9. zakasnak

    Macro help - "Force Use Macro's" plus "Auto Terminate"

    I found this code at vbaexpress & it works as expected. Option Explicit Const WelcomePage = "Macros" Private Sub Workbook_BeforeClose(Cancel As Boolean) 'Turn off events to prevent unwanted loops Application.EnableEvents = False 'Evaluate if workbook is saved and...

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