Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
_Example_ RANGE(\"A1:H44\").SORT KEY1:=RANGE(\"B2\"), ORDER1:=XLASCENDING, HEADER:= _ XLGUESS, ORDERCUSTOM:=1, MATCHCASE:=FALSE, ORIENTATION:=XLTOPTOBOTTOM, _ DATAOPTION1:=XLSORTNORMAL My problem ; the last cell of this selection (H44) is increasing every day (H45, H46 ...). How can I calculate automatically the last cell ? ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
Please use the method .End(xlDown) of Range Object "ChefChaudart" wrote in message ... Hello, _Example_ RANGE(\"A1:H44\").SORT KEY1:=RANGE(\"B2\"), ORDER1:=XLASCENDING, HEADER:= _ XLGUESS, ORDERCUSTOM:=1, MATCHCASE:=FALSE, ORIENTATION:=XLTOPTOBOTTOM, _ DATAOPTION1:=XLSORTNORMAL My problem ; the last cell of this selection (H44) is increasing every day (H45, H46 ...). How can I calculate automatically the last cell ? ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It is considered impolite to type all CAPS. Called "shouting"
You could use x=cells(65536,"h").end(xlup).row range("a1:h" & x) or better yet you could create a defined name for the range that automatically increases with each addition or subtraction. insertnamedefinetype in a name like colHin the refers to box type =offset($H$1,0,0,counta($h:$h),1) "ChefChaudart" wrote in message ... Hello, _Example_ RANGE(\"A1:H44\").SORT KEY1:=RANGE(\"B2\"), ORDER1:=XLASCENDING, HEADER:= _ XLGUESS, ORDERCUSTOM:=1, MATCHCASE:=FALSE, ORIENTATION:=XLTOPTOBOTTOM, _ DATAOPTION1:=XLSORTNORMAL My problem ; the last cell of this selection (H44) is increasing every day (H45, H46 ...). How can I calculate automatically the last cell ? ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use Range("A1").Sort
Excel should pick up the appropriate range. You don't need notation like \" -- Regards, Tom Ogilvy "ChefChaudart" wrote in message ... Hello, _Example_ RANGE(\"A1:H44\").SORT KEY1:=RANGE(\"B2\"), ORDER1:=XLASCENDING, HEADER:= _ XLGUESS, ORDERCUSTOM:=1, MATCHCASE:=FALSE, ORIENTATION:=XLTOPTOBOTTOM, _ DATAOPTION1:=XLSORTNORMAL My problem ; the last cell of this selection (H44) is increasing every day (H45, H46 ...). How can I calculate automatically the last cell ? ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),QuoteNotes, | Excel Worksheet Functions | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),Range ... ? | Excel Worksheet Functions | |||
Return cell address of a cell based on contents of cell. | Excel Worksheet Functions | |||
find last cell in range with data, display cell address | Excel Worksheet Functions | |||
How to create table of cell names with the name's cell address | Excel Discussion (Misc queries) |