Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Just saw this code a few hours ago but can't find it back The code will tell me that there is that many row used in the sheet From that info, I will be able to put my next line of data. Thanks Alai -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
THere is a last row example on my website
-- Rob van Gelder - http://www.vangelder.co.nz/excel "alainB " wrote in message ... Hi, Just saw this code a few hours ago but can't find it back The code will tell me that there is that many row used in the sheet. From that info, I will be able to put my next line of data. Thanks Alain --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
It is not what I saw. Was very simple, maybe less than 30 letters. I think it is to give th number of rows used in the sheet. Thanks Alai -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
maybe try msgbox activesheet.usedrange.rows -----Original Message----- Hi, It is not what I saw. Was very simple, maybe less than 30 letters. I think it is to give the number of rows used in the sheet. Thanks Alain --- Message posted from http://www.ExcelForum.com/ . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
UsedRange is alright, as long as you know it's not always going to be the
"real" last row until you've saved. Alain, maybe it's: lngLastRow = ActiveSheet.Range("A65536").End(xlUp).Row That determines the last row based on the last entry in column A -- Rob van Gelder - http://www.vangelder.co.nz/excel "Frank Kabel" wrote in message ... Hi maybe try msgbox activesheet.usedrange.rows -----Original Message----- Hi, It is not what I saw. Was very simple, maybe less than 30 letters. I think it is to give the number of rows used in the sheet. Thanks Alain --- Message posted from http://www.ExcelForum.com/ . |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Thanks. Almost that Frank! x= Sheets("DATA").UsedRange.Rows.Count Msgbox x It gives me what I need. Thanks everybody. Alai -- Message posted from http://www.ExcelForum.com |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Perhaps you could use a variation of one of these:
=Offset(A1,CountA(A:A)-1,0) OR my personal favorite: Selection.End(xlDown).Select This finds the last non-empty cell. -----Original Message----- Hi, Just saw this code a few hours ago but can't find it back The code will tell me that there is that many row used in the sheet. From that info, I will be able to put my next line of data. Thanks Alain --- Message posted from http://www.ExcelForum.com/ . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy rows from one Data sheet to another sheet based on cell conte | Excel Discussion (Misc queries) | |||
Duplicate sheet, autonumber sheet, record data on another sheet | Excel Worksheet Functions | |||
Hyperlinking from data in one sheet to matching data in another sheet | Excel Worksheet Functions | |||
create a formula in one sheet that would read data from separate sheet automatically | Excel Discussion (Misc queries) | |||
pull data from sheet two, then fill in the data to sheet one (part | Excel Worksheet Functions |