find last row

  1. E

    Formatting to last row

    I want to highlight cell b37 and until the last row (which might change) in order to format that range of data this is what i have so far, whereby i have declared at the very start of the code the following: Dim Lastrow as Long originally i had it as range("B37:B150").Select, but i had to...
  2. J

    Trouble shoot vba code fine last cell

    Greetings all; I have a find last column to begin pasting data in Col A:X (returned row) The code is used earlier in the same procedure with no issue When I use the code a second time it errors out at Cell.Select Data is already in All Orgs Prod.xlsx A2:A;500 Here is the code for the first...
  3. J

    Find Grand Total Row (Dynamic) and Hide Columns with "0" in Grand Total Row

    Hello, I am trying to come up with some code to find the row with "Grand Total" in column B and set that as LastRow. The grand total row will change (ex: move from row 20 to 30, when more data is added), so I need this to be dynamic which is where I'm kind of struggling. Then I want to search...
  4. Y

    VBA Adding copied rows after last used row

    Hi experts! I have a worksheet which always has data in the A column (as part of a merged cell). I am looking for a VBA program to help me select the last row and add a copyed set of 4 rows to add after the last row. The copyed selection will always be the same and origin from the same cells...
  5. X

    Excel Macro to copy data in cell to multiple cells in the same row

    Hi I am a beginner in VBA scripting but I am working on a sheet where I want to copy data in one cell to multiple cells in the same row as long as it is not empty but separate the two data by a comma and do this through out the table Before Macro...
  6. L

    Macros-count the last row & use the results

    I want to use the value of the last row found into a range using For Each...In [A:A]...in other words I want the range to stop at the last cell w/content in it... '***Find last row LastRow = Cells(Rows.Count, 1).End(xlUp).Row '***Modify Data In Cells For Each nb In [A:A] or LastRow.Rows If...
  7. T

    Find the last row with in a range, but stop once a given row or cell is reached

    I know there is a line of code that allows one to find the last row of a worksheet, and then work it's way to a row with a populated cell. Let' say, I would to start of the bottom, but in my case the bottom is row 1000 and continue searchin upward (rows, 999, 998,.....) until reaching row 5...
  8. C

    How to determine last row and copy data from one sheet to another sheet

    I have a spreadsheet that is attached to a database. The first sheet has the data that is to be copied into a second spreadsheet. The values in columns C through I have to be copied and repeated in the second spreadsheet repeatedly. The data in these columns are to be used to store the data into...
  9. R

    Finding the last row of data

    Hello, I am in need of a few lines that will help my macro determine the last row of data. However, there are a few variables that make this a little bit more complicated. The data is arranged as shown below. <tbody> kdjljfdlldlkd 2 kljfjdslfja g 1234 e 5647 f...
  10. R

    vba Found text cell address as last row range row

    Folks: Looking to modify your code to find the row with "Grand Total" in column B, then Range("A2:H" & LstRow).Copy I tried this code, it only copied 2 rows, definitely not the row with "Grand Total" found in it. How can I fix it? Thank you, Rowland: Sub try_this() 'copy...

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