Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tegger,
I found a problem though in that the exported XML workbook for some reason have a few rows within the customer transactions that are blank so End(xlDown) does not go to the last record. I am going to have to find some other method to find the final entry in the table. Try:; Set rng = Cells(Rows.Count, "A").End(xlUp)(2) --- Regards, Norman "Tegger" wrote in message ... The expression: Set rng = Range("A1").End(xlDown)(2) is an abbreviated version of: Set rng = Range("A1").End(xlDown).Item(2, 1). Chip Pearson hosts an excellent discussion, written by Alan Beban, of this method at: http://www.cpearson.com/excel/cells.htm The above expressions are equivalent to: Set rng = Range("A1").End(xlDown).Offset(1, 0) Ahhh... Now i understand, you and Alan explained it perfectly. I found a problem though in that the exported XML workbook for some reason have a few rows within the customer transactions that are blank so End(xlDown) does not go to the last record. I am going to have to find some other method to find the final entry in the table. Thx for your help, knowing how Item works seems like it will be very usefull. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding First Empty Cell in a Column | Excel Discussion (Misc queries) | |||
Finding First Empty Cell in a Column | Excel Discussion (Misc queries) | |||
Finding Column based on input, then first empty row | Excel Programming | |||
Finding Column based on input, then first empty row | Excel Programming | |||
Finding last non-empty column in row... | Excel Programming |