last row

  1. B

    VBA: Open workbook to last empty row

    I have a workbook named "Archive" and a sheet named "Master" which I would like for It to go to the last empty row upon opening. Is there away to do this...Thanks
  2. berty2000

    Select last row with data in

    Need to search down rows in range B5:M6000 to find the last row with data in then select the next row down from column B to M and colour yellow. Seems simple but cant seem to get result Sub test() ' Select the range: Last row - Last Column Range("B5:M6000").Select...
  3. B

    Find last used row problem

    I have the following section of code from a SUB that needs to know the last row with data in it. . Dim RwCount as long, RRng as range . . With Sheets("annualsummary") Set RRng = .Range("D:D") RwCount = RRng.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row . . When...
  4. B

    AutoFill to the last row

    I created a macro utilizing Excel 2007 in order to automate the process of using the TRIM function in column S to trim strings found in Column H and then AutoFill the entire column: Sub TrimFileName() Range("S2").Select ActiveCell.FormulaR1C1 = "=TRIM(MID(RC[-11],24,25))" Range("S2").Select...
  5. E

    VBS Help for Removing Rows

    I am using Excel 2007 and with a .vbs file and I am trying to delete the first 11 rows of data in a CSV, then delete the very last row after the first 11 are deleted. After this the file should be saved in XLXS format which currently does work. Set objExcel =...
  6. R

    Find Last Row use in VBA code with array, File browser and Copy/Paste between workbooks

    Folks: Nories code worked great for me when my data was contiguous and I finally got my adjusted find last row formula to work but I can't seem to get it to work inside my macro with other variables. Note: My previous copy data was contiguous 1 region but now I need to copy non-contiguous...
  7. C

    last row/col question...

    Regarding the identification of the last row or column of a spreadsheet, is it dangerous to use the single line below instead of the lengthy function lastrowN below it? My mind prefers simplicity but if it creates problems.... lastrow = ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Row...
  8. B

    Find Row Below

    I want to go to the cell below a range of data. My macro keeps returning the last row + next row for the range. I only want the row below the range not to include the last row itself. How can I change the following?: LastRow = Range("L" & Rows.Count).End(xlUp).Row vRange = "L" &...
  9. C

    Run time error 1004 to find last row of data

    I'm new to VBA and I'm trying to create a macros to do the following: What I'm trying to do: Using spreadsheet "Raw Sales", for every row in column F that has a product ID # of 4 it would look up column B, a date, and compare it to the date in spreadsheet "Cost of Goods", return the Price...
  10. B

    VBA thinks blank rows aren't blank?

    Hello, I have small VBA macro that copies a few lines of some variable data and then goes to another spreadsheet, finds the last row of data and then pastes the values into the next row. Since my original dat can be 1-10 rows of data with formulas in each cell, sometimes there's up to 10 rows...
  11. T

    find last row used and then get text from cells in row 1 throught to last used in a string

    im new here but if someone can help it would be appreciated. Working on an "Orders" Workbook I have 3 columns of data on 10 rows i want to get text from A = QTY B = Description C = Partnumber what i need to do is end up with the partnumber1 then a comma then the qty1 then a new line...
  12. W

    Macro? Copy last row from another file to one that is opened

    I am running a program that spits out a excel file (*.csv). The file contains one worksheet with bunch of columns any many rows. I would need to open that file find the last row and copy the data to another excel file and then rerun the program and copy and paste all over. I am trying to find...
  13. H

    Creating and copying a formula with Macros till last row

    I have a table with data in it that has headers and a total line at the bottom. I want to create a formula with macros that uses data from the current row and the last row. I want to copy that formula to every cell in my column except the last row (because it's the total line). Then I want to...
  14. M

    Select the Last Row in Named Range

    Hi all, I would like to add a line to my macro that selects the last row in a named range ("Report"). I've tried looking for this throughout this forum and I can't seem to find an answer to this problem. Thanks a lot!
  15. 9

    Looping a macro until the last data row

    I have an excel problem related to running the same macro multiple times for data with one of the references changing each time.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> <o:p> </o:p> I need the macro to take a series of values from one spreadsheet...
  16. bmckenna

    Find data in last cell of a row

    I need an excel formula, preferably no VBA, that finds the last cell's value in a ROW range.
  17. S

    Copying dynamic range

    By using the following I get the row and column number of the "last" cell with contents:' lastrow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Row lastcolumn = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns...
  18. A

    Find Last Row and Column

    Hello, I have some code that I want to beef up. One of the things I want to do is get rid of some hard references. For Example, Range("B1:H381").Select How can I make the above code find H381 without me typing it in? Thanks in advance for any help! -Alex in Memphis, TN
  19. V

    Find a column by name in row 1 and replace blank cells with the text "Blanks2"...

    Hi, I'd like a macro to find the column named "Earth" in row 1 and replace ALL and ONLY blank cells with the text "Blanks2"... BUT... It should first look at the "Galaxy" column (also in row 1) to find the last row with data in it. Once it knows the last row of data in the "Galaxy" column...
  20. W

    Last row FillDown, Second last row paste special values

    Hello, I have a worksheet that contains cells with VLookup formulas, however I need the actual values of the cells to be used by other formulas in the same worksheet. I decided to use FillDown to drag all formulas (including the Vlookup formulas) one line below and after that copy and special...

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