entirerow

  1. F

    Highlight active row Except cells that are currently highlighted

    Hey Team, I have this code that highlights the entire row of the active cell. But I don't want it to mess with the cells I already have highlighted in that row. Is there a way to modify this to only highlight cells that are not currently highlighted?? This way my highlighted cells are not...
  2. J

    ClearContent in range instead of EntireRow row

    I need some help to fix this code to copy and clear content only in a range instead of copying and clearing the whole row. What the code does now, is that if column "I" is greater than column "J", in row 2-14, it copys the rows and PasteSpecial from row 16 and onwards. I want to copy only...
  3. rhino4eva

    find and delete again

    Sheets("Sheet1").UsedRange Dim Rng1 As Range For Each Rng1 In Range("Z:Z").SpecialCells(xlBlanks).Areas Intersect(Rng1.EntireRow, Range("A:BT")).Delete shift:=xlUp Next Rng1 ok so I have used this code many times but need to modify it a little...
  4. L

    How do I select a row with vba?

    Hi all, I'm sitting in front of a deadline project and I seem to be forgetting the basics.. my own name will be the next one.. I'm getting compile errors and I can't figure out the correct syntax. Sub try_this() Sheet4.Activate Dim headerrowin As Long headerrowin =...
  5. D

    Entirerow.delete Rows function Error 400 problem

    Hi guys, I made this command, before it was working fine. I have been using it for quite sometime now. Sheets("DATABASE").Rows("4:1048576").Delete Now suddenly there is an error showing, I didn't change anything to my programming. Error 400. Tried this too in hope that it will get fixed...
  6. L

    VBA: Delete range if cell contains "Y"

    Hi, I need to create a code that once I paste in some data, the code activates and looks down range("A2:A10000") (Or last row, the data will never go past 10000) and if a cell contains a "Y" then delete A2:J2 not entirerow. Example <tbody> A B C D E F G H I J 1 3 10 2 4 8 9 4 4 6 Y 4 7 5...
  7. M

    group sheets- insert row by : range.select EntireRow.insert

    I am getting confused that why excel do the actions to all grouped sheets except this action that I really need it. I want to insert Row by selecting range of cells and then insert entire row. it makes me more confused that it works when I do it manually and also recording macro. I mean all...
  8. J

    Insert New Row Below, Not Above

    I have written the following code to insert a new row so that an entry isn't overwritten: Range("B2").EntireRow.Insert The new row is inserted ABOVE the previous post. I would like to have the new row inserted BELOW the previous post. Thank you!
  9. D

    VBA Paste Entire Row over existing row by matching row A

    Hi, I have the following code for copying and pasting an entire row from one spreadsheet into another: Sub ExportRow72() 'Declare Variables Dim MyRange As Range, rng As Worksheet Set rng = Workbooks("2012 to 2016 bound new test VBA").Sheets("2015 CLASH") Set MyRange = Workbooks("Copy of...
  10. D

    Copy and Paste EntireRow VBA

    I'm trying to copy and Paste an entire row from one workbook to another. Here is the code I have come up with but it is not working - I'm getting an out of memory error on the last row - any suggestions? Sub ExportRow4A() 'Paste Row from MCT Summary In to B&Q 'Declare Variables Dim...
  11. P

    Autofit does not expand row height enough to display all text in cell

    I have 22 identical worksheets for a financial report used by our businesses where Col A has categories, Cols B-J are used for numbers, and Col K is for comments. Col K is configured to Wrap text (also, for 'TEXT ALIGNMENT', 'Left (Indent)' and 'Bottom' are selected). To print the report...
  12. N

    Would love some help to speed up my code...

    Hi guru's, I'm working on a bit of code to add a new row to a worksheet. The worksheet is for values related to electricity distribution. This particular code adds a new row to a list of equipment that is connected to a particular switchboard. When new equipment is added, the user will add...
  13. A

    Move Entire Row to New Worksheet if Cell Contains Specific Text?

    Hi everyone, I am trying to write a macro that scans a selection of cells in one sheet and then cuts any rows from this sheet and pastes them into another sheet if the cell contains a particular text. As it stands I have two worksheets labelled "Data" and "Errors". On the Data worksheet I...
  14. T

    Automatically number newly added Rows (Insert Shift:=xlDown)

    Hello People! I hope someone here can help me... I have made a macro that copies a row into a new sheet: Sheets("Datasheet").Select Range("A2").Select ActiveCell.EntireRow.Insert Shift:=xlDown Sheets("MailMerge").Select Range("A7:G7").Select Selection.Copy Sheets("Datasheet").Select...
  15. J

    Deleting rows in a filtered set with For Each

    I am working on solving a problem where I get every other row deleted instead of every row. The situation is that I am using Autofilter to find empty cells in a column that shouldn't have empty cells. Before I can delete them, I need to add them to an array for exceptions handling. This means I...
  16. J

    Copy Rows To Listbox

    Hi All, Can someone please help with the following. I am using the following script which highlights the entire row of found values. I would like a modified script which would copy the rows of the found values into a listbox. Also a script which would copy not the entire row of the found...

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