Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi all,
please help. I have to add every day new data (number of rows is various) to existing data sheet. I suppose to use macro and run that automatically at night. As I have to add it to table where number of rows will groe up, I need to start copying new data to the first blank cell in the first column. How can I force macro to find this blank cell when the position will shift? Many thanks, Valdemar |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Find the end of a list:
here are a couple different ways: this will select the cell. it's not a good practice to select, but just used as an illustration here. range(worksheets("Sheet1").cells(rows.Count,"A").e nd(xlup).address).Select or if you just want A5 returned: lastcell = worksheets("Sheet1").cells(rows.Count,"A").end(xlu p).address(0,0) Find Last Used Cell: Sub FindLastCell1() Cells(Rows.Count, "A").End(xlUp).Select End Sub Sub FindLastCell2() Range("A:A").Find("*", Cells(1), _ xlValues, xlWhole, xlByRows, xlPrevious).Select End Sub -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Valdemar" wrote: Hi all, please help. I have to add every day new data (number of rows is various) to existing data sheet. I suppose to use macro and run that automatically at night. As I have to add it to table where number of rows will groe up, I need to start copying new data to the first blank cell in the first column. How can I force macro to find this blank cell when the position will shift? Many thanks, Valdemar |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Valdemar,
ActiveSheet.Cells(Rows.Count,1).End(xlUp)(2).Selec t will select the first empty cell at the bottom of column A. HTH, Bernie MS Excel MVP "Valdemar" wrote in message ... Hi all, please help. I have to add every day new data (number of rows is various) to existing data sheet. I suppose to use macro and run that automatically at night. As I have to add it to table where number of rows will groe up, I need to start copying new data to the first blank cell in the first column. How can I force macro to find this blank cell when the position will shift? Many thanks, Valdemar |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi ryguy7272, many thanks for you help and have a nice day
Valdemar ryguy7272 pÃ*Å¡e: Find the end of a list: here are a couple different ways: this will select the cell. it's not a good practice to select, but just used as an illustration here. range(worksheets("Sheet1").cells(rows.Count,"A").e nd(xlup).address).Select or if you just want A5 returned: lastcell = worksheets("Sheet1").cells(rows.Count,"A").end(xlu p).address(0,0) Find Last Used Cell: Sub FindLastCell1() Cells(Rows.Count, "A").End(xlUp).Select End Sub Sub FindLastCell2() Range("A:A").Find("*", Cells(1), _ xlValues, xlWhole, xlByRows, xlPrevious).Select End Sub -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Valdemar" wrote: Hi all, please help. I have to add every day new data (number of rows is various) to existing data sheet. I suppose to use macro and run that automatically at night. As I have to add it to table where number of rows will groe up, I need to start copying new data to the first blank cell in the first column. How can I force macro to find this blank cell when the position will shift? Many thanks, Valdemar |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Bernie, many thanks for your very usefull help
Valdemar Bernie Deitrick pÃ*Å¡e: Valdemar, ActiveSheet.Cells(Rows.Count,1).End(xlUp)(2).Selec t will select the first empty cell at the bottom of column A. HTH, Bernie MS Excel MVP "Valdemar" wrote in message ... Hi all, please help. I have to add every day new data (number of rows is various) to existing data sheet. I suppose to use macro and run that automatically at night. As I have to add it to table where number of rows will groe up, I need to start copying new data to the first blank cell in the first column. How can I force macro to find this blank cell when the position will shift? Many thanks, Valdemar . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select until blank row | Excel Discussion (Misc queries) | |||
Is there a formula to select the last non-blank cell in a list | Excel Discussion (Misc queries) | |||
Select NON blank cells | New Users to Excel | |||
How do I select & use contents of first non-blank cell in row? | Excel Worksheet Functions | |||
I want to select the first blank cell in column A | Excel Worksheet Functions |