Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Certainly applicable to appropriate situations, but it can be tripped up as
well by the occasional blank row or blank column. -- Regards, Tom Ogilvy "MSP77079 " wrote in message ... All of this works as long as no one has made any extraneous entries below your data table. But, it's going to fail if the worksheet is not absolutely, infallibly clean. When I have a table of data, I don't use "search for *". Nor do I use end(xlUp). Instead, I use "CurrentRegion". It is not fooled by the occassional blank cell, nor extraneous stuff at the end of the datatable. Let's say that cell "B2" is the first cell in the data table. Then, Set myRange = Range("B2").CurrentRegion LastRow = myRange.Cells(myRange.Cells.Count).Row LastCol = myRange.Cells(myRange.Cells.Count).Column worksheets("Sheet3").Range("A2:AA2").Copy _ Destination:=worksheets("Sheet2").Cells(LastRow, LastCol) --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extract number from cell when specific format is found | Excel Worksheet Functions | |||
Count the number of Commas found in cell A2 | Excel Worksheet Functions | |||
How to select the number in excel? | Excel Worksheet Functions | |||
Advanced Filter: Number of Records Found | Excel Discussion (Misc queries) | |||
is there someway to select what i have "found"? | New Users to Excel |