Count last row in active cell using VBA.
And if you read my comment above (I'll repost it here), I actually did quite clearly explain why it did not work: A more detailed explanation of what I require: Column A Header Value Value Value Value (blank) (blank) ..
Microsoft Excel, a spreadsheet application included in Microsoft Office, gives you the tools to easily analyze data by using formulas for complex calculations
If your With block refers to a range object, then that line of code will go to the first column, bottom row of that range and navigate upwards until it comes to the first blank or non-blank cell. If I select a cell outside the 'list' boundary, and then try to select the last cell in the worksheet by using VBA, I have to call the .Select function twice to make sure I am getting the correct cell
excel - Error in finding last used cell in VBA - Stack Overflow
So if for example you enter something in B3 and something else in H8 and then later on delete the contents of H8, pressing Ctrl + End will still take you to H8 cell. This criterion usually produces unexpected results, but it may also be intentionally exploited (less often, surely), e.g., to highlight or print specific regions, which may eventually have no data
Excel vba how to select last row
Louis, MO Posts 6,118 Re: Excel vba how to select last row Originally Posted by lecet444 actually i made a mistake, the second part of your code works good my first part
No comments:
Post a Comment