shift=xldown

  1. T

    Copy Row 2 and 3 from a closed workbook and paste it into my active workbook

    I'm trying to create a macro that sets up my reports with a header and spaces above and before the data Essentially what I want to do is add a column in the front of my data, add 6 Rows above my data, turn gridlines off, and open my workbook that contains my header and copy and paste it into...
  2. R

    Insert / Copy / Paste macro inquiry

    I need a macro to prompt for user defined row entry. Once that is accomplished it needs to simultaneously copy data from two specific columns (unique naming convention for the header - e.g., Ledger Code (Column D) and Cost (Column F)) from a neighboring workbook to columns J and Q to the target...
  3. D

    Macro works in my workbook, but not when I send to someone else

    Hi Everyone, Any help here would be greatly appreciated! I've tried checking trust settings, etc. on other people's computers, they're set to allow macros. I'm getting run-time error 438 when i run this code on other's computers. Any idea why? I red fonted/underlined the line of code that the...
  4. C

    Newbie - How to make this Macro repeat until is over and how do I make it delete the rows which value is Zero

    Hello, I have this Macro and I need it to repeat until there are no more lines. the tricky part is that the macro creates 6 new rows each time. also how can I make it delete the rows with zero balance? thank you Sub Create_Rows() ' ' Create_Rows Macro ' ' Keyboard Shortcut: Ctrl+q '...
  5. V

    Using a variable to select a range excluding one cell.

    Hi I have been trying to write some code which checks if a cell is empty, if the cell is empty it moves the data from that row and the next 2 columns down a row. The problem I have is that the second column contains the address of a linked cell, hence I need to check if the address is still...
  6. P

    VBA: Copy 6 rows from Tab2 to a list in Tab1 below each row.

    How can i copy 6 rows from Tab2 to a list in Tab1 below each row. Finally i want it to the last record. Sub CopyPaste11() Dim i As Long For i = 1 To 6 'Copies the specified selection to the Clipboard Sheets("Tab2").Select Range("A3:U8").Select...
  7. A

    After Every Tenth Row Insert 2 Blank Rows without any Format

    Hi I have recorded the following Macro but it seems to insert another extra row(third row) with format which I did not intend to record: Sub Macro5() ' ' Macro5 Macro ' ' ActiveCell.Range("A1:A10").Select ActiveWindow.SmallScroll Down:=3 ActiveCell.Offset(10...
  8. S

    Macro to Loop Through All Sheets

    Hi I have a data set which contains hundreds of cities and I want to run a pivot on each city and export each city's pivot to a new workbook. To accomplish this I ran a Macro to break each cities data out into its own sheet. Now for each city I would like to insert blank rows above the data and...
  9. L

    VBA failing when user changes file name

    I have a file where some VBA is ran which creates an output into a new file and does some formatting etc and then the VBA return to the original file where the VBa was first ran from. The issue is the user will sometimes change the file name which creates an error in my code. Please see my code...
  10. Q

    INDIRECT formula

    Hello. I'd love some help with "baking" the indirect formula, as i've never worked with it before. My formula is as follows: =IF(COUNTIFS($X$100:$X$500;$AC3;$W$100:$W$500;">"&1)>1;"2";IF(COUNTIFS($X$100:$X$500;$AC3);"1";"0")) I have a VBA macro for endusers to create a new row...
  11. Y

    Array and range logic

    Hi, I've always wondered why this kind of codes doesn't work: Worksheets("Titles").Rows("1:1").Copy Worksheets(Array("V1", "V2").Rows(1)).Insert Shift:=xlDown Any help is appreciated.
  12. T

    going from 2013 macro will not work in 2016?

    How to get this Marco to work in 2016? Sub Send_Part_Number_Request() 'Clear current data Rows("102:155").Select Selection.ClearContents 'Copy data below to be sorted before it is added to body of email Range("B47:C97").Select Selection.Copy Range("B102").Select...
  13. P

    read value from a cell

    Hi all, I would like to ask how to refer a cell an read a value from there. Selection.Resize(4).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove I want that resize number refer to a cell and read that. For example in "BW5" cell there is a number (let's says 5) How should i refer...

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