Linked Questions

0 votes
1 answer
1k views

Possible Duplicate: How can I find last row that contains data in the excel sheet with a macro? Error Finding Last Used cell In VBA If I have a spreadsheet and the largest row number which has ...
intrigued_66's user avatar
  • 17.6k
0 votes
0 answers
57 views

I have a code, which basically makes one formula for B10, then it copies it all the way down and insert it back as values to remove the formula and make it more 'clean'. My issue is that I have a ...
Aabo's user avatar
  • 223
0 votes
0 answers
27 views

I am currently attempting to find the range at which data occurs within column 3, Dim dataWs As Worksheet Set dataWs = ThisWorkbook.Worksheets("Cleanwaste") lastRow = dataWs.Cells(dataWs....
Jacob Bratkovic's user avatar
205 votes
15 answers
211k views

When I want to find the last used cell value, I use: Dim LastRow As Long LastRow = Range("E4:E48").End(xlDown).Row Debug.Print LastRow I'm getting the wrong output when I put a single ...
Mushahid Hussain's user avatar
49 votes
10 answers
350k views

column A has data like this (ie frequent blank cells): HEADING <-- this is A1 kfdsl fdjgnm fdkj gdfkj 4353 fdjk <-- this is A9 I would like to be able to get the cell reference of the last ...
pjj's user avatar
  • 499
36 votes
11 answers
251k views

How can I determine the last row in an Excel sheet, including some blank lines in the middle? With this function: Function ultimaFilaBlanco(col As String) As Long Dim lastRow As Long ...
Jonathan Raul Tapia Lopez's user avatar
55 votes
7 answers
449k views

I've found this method for finding the last data containing row in a sheet: ws.Range("A65536").End(xlUp).row Is there a similar method for finding the last data containing column in a sheet?
Neat Machine's user avatar
15 votes
2 answers
65k views

I have an excel sheet in which I need to find the last non empty cell in a specific row. How do I do this? The below will select this for me, but it will select the first not empty cell, I need the ...
user avatar
3 votes
7 answers
91k views

I wrote a short VBA code to automate stuff. A short snippet is as follows: Sub TEST() Rows("1:2").Select Selection.Delete Shift:=xlUp Range("A1").Select ActiveSheet.ListObjects.Add(...
Probs's user avatar
  • 353
9 votes
2 answers
25k views

I have looked at the suggested questions to find the answer to my problem. The closest question is called: Count number of rows in a different Excel Sheet Count number of rows in a different Excel ...
user2859603's user avatar
4 votes
2 answers
46k views

I'd to select all rows from 2 adjacent columns, starting with the row below the header (this is fixed) and ending with the row before the first row with a blank cell. Given the following the example.....
Daan's user avatar
  • 1,437
0 votes
2 answers
54k views

I'm presently using the below code to copy paste the range, but it creates a really large file once the data is pasted, how can I modify this to copy paste only till the last active row? Or is the ...
GavinJones's user avatar
0 votes
2 answers
11k views

I'm trying to write a macro to create graphs in excel 2007. I don't know the number of cells that will be in the range for one of the series of data (it could be anywhere from 50 - 1000). I've ...
Patrick's user avatar
  • 3,172
0 votes
1 answer
3k views

I've been trying out various ways of finding the last row in a range and returning this number to a subroutine, to no avail. Here's the code I have Sub StartHere() Dim oSheet As Worksheet ...
Poliquin's user avatar
  • 2,987
1 vote
3 answers
4k views

I am trying to create VBA code that copies and pastes data from Column B into the row directly beneath in Column A. I do not have great experience with VBA and so I am struggling to create such a ...
DV7's user avatar
  • 35

15 30 50 per page
1
2 3 4 5