macro

  1. F

    Dynamic Macro to copy and paste

    I have 2 sheets, call it ‘upload’ and ‘final’. There are calculations that are run behind the scenes I.e. other tabs that require Columns E:AN from the upload tab to be copied and pasted one at a time to the Final tab. Need a macro, that essentially does this. Copies E56,E61,E66 from Upload tab...
  2. G

    Autofill to bottom of worksheet (macro not working)

    I have this excel macro below, where the majority of the code "seems fine" until the last row, when the runtime error comes up, stating "Autofill method of range class failed". Seems like the problem in the code is the "fillRange.AutoFill Destination:=fillRange" How would I fix this? Thanks...
  3. K

    issue with macro that fill a word document with text

    hello we have an excel sheet that contain a macro who create a word document every time we running it it fill all line with "all tests" even if the line 7 is empty. not sure why. plus the word doc created put text sometime in 2 lines instead of 1 here the code : Sub Main()...
  4. S

    Use excel to populate chart

    Hi - I have an excel table with 6 Columns (fixed) and then I want to be able to fill in as much content in the rows without limitation. Problem: I want the table contents to fill into the charts and automatically and automate adjust, so that it’s easy to read with the same excel sheet if...
  5. Rob_010101

    Mail Merge Macro - Saves to PDF/Word

    Hello I use a macro to save mail merged documents into word and PDF files; very handy. I must select all the rows above the row I need in the recipient list for it to work. If I only ticked "Sam" and left "Connor" and "Vincent" unticked, the macro will produce a "runtime error 5631" on...
  6. A

    VBA code to copy various ranges of data multiple times

    Hello- I need help creating vba code that will move, transpose, and stack data from D2:F5 and B9:F12 into B19:H26 based on number of rows and columns in A1:B2. Any help or suggestions would be appreciated.
  7. G

    Balance Sheet Generate Table via VBA/Macros

    Dear Guys, I am just start learning VBA from the beginner and really frustrating on convert excel formulas to VBA. I would like to Generate a "Consolidated Balance Sheet" table (right side) from the raw Balance Sheet data on the left via VBA. Is it possible to do that? I also attached the...
  8. 8

    VBA Macro Error 76; File Path not found

    Hi all, I am new to macros and have been trying to maintain our department's macros that were built by someone who is no longer with the company. The macros are used to pull store data such as address, city, general ledger information and other data. I tried to make some changes to add some...
  9. L

    VBA Error

    Hello helpful peeps! I have a massive macro that is run every month on files that are received from an outside source. It worked last month, but this month I received an error. The file received has not changed, nor has the code. I don't get it. Any help is appreciated! The line where the...
  10. V

    Print to PDF in VBA

    https://drive.google.com/file/d/15bM1T31K9eEbvtOL64D2i63pQ_60Zjtf/view?usp=drive_link I have an excel that calculates business position for 481 branch locations. There are certain number of branches under each Regional Office (RO/RO Name). User can select the branch by entering the DP Code of...
  11. M

    Custom Ribbon Macros point to old workbook

    I've created a workbook with several coded macros of which I've assigned to buttons in a custom Ribbon tab for the workbook. When I am coding new macros or changing code, I make a copy of the workbook and do it in the new copy so as to not corrupt the current version in case I make a mistake...
  12. I

    Email via VBA in Excel

    Hello, so I want the following thing to add to this (I am very new to VBA and learning this since last friday): - Send Mail from a specific Mail adress (emailItem.To does not work here) - Have a Signature automatically drafted e.g. when I click the Checkmark the Mail Editor opens but my...
  13. B

    Macro code changing date format

    Hi to all of you, I have an excel sheet with an Inputbox, where i'm asker to put the number of the month, the year and a third value. Problem is, it was working as intended during 2023, but now, it's swaping the month for the day. I'm in Europe, we use dd/mm/yyyy and I'm trying to make the...
  14. N

    Marco, IFS and XLOOKUP but certainly happy to be wrong

    I am really struggling with this and while its just the first part it technically controls everything else. Say I have 18 (I've only shown 12) rows and the data represented in these rows are dependant on a table (for want of a better word) The table contains 4 pieces of information which will...
  15. G

    Sort by level (macro not working)

    I'm trying to automate the sort function in excel (by levels). So I would like to first sort Column B by A-Z Then the next level is sort Column N from oldest to newest date The problem with the macro below, is it sorts Column B fine (A-Z), but then it doesn't apply the "level" criteria, and it...
  16. G

    Macro not reaching bottom of the worksheet (due to blank rows)

    I have an excel macro to do the following For Column O, for each cell in Column O, if cell is blank, then for that row, clear all cells going right. For example, if Cell O7 is blank, it will clear all the contents of all the Cells from P7,Q7,R7, S7 etc. onwards. But leaving the cells on the...
  17. G

    Stop excel macro from running if there is a blank cell in a column

    I have an excel macro that applies values in Columns O, P, Q, R. It works fine for Column O, but for Column P, Q & R, the values keep getting applied even though there is a blank cell/blank row. What I would like is for the cells highlighted in red (see attached image), that the excel macro...
  18. R

    VBA Code for pasting Value every nth cell in 2 different rows

    Hi there, I'm a bit stuck on some VBA code and need some help! I want to create some code for a macro button that will auto populate a value from cell A1 in cells Q19 and AJ19 and carry on doing this every 14 cells in both columns. It would be great if the VBA loop ends at row 355 as this is...
  19. H

    Index/Match Formula Returning N/A

    Hi, I'm creating a cashflow spreadsheet to track the outgoings from various sources and have used an index match formula to track from different projects into one summary sheet. The formula works fine for the BACS column, but for my CC and ACC columns it returns a #N/A. Can anyone help with...
  20. G

    Continue macro after encountering a blank row

    In Column O, starting from Cell O3, the value is =H3/$D$3. I then drag and drop the formula downwards. So Cell O4's value is =H4/$D$3 and so on etc.. But whenever I encounter a blank row, for example if Row 6 is a blank row, I would like the formula in Column O to "reset". So for Cell O7's...

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