Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You also forgot that Cells should have the prepended dot...
.range(.cells(2,1),.cells(lr,lc)).copy _ In article , "Don Guillett" wrote: I forgot a ). Should test. .range(cells(2,1),cells(lr,lc)).copy -- Don Guillett SalesAid Software "Don Guillett" wrote in message ... Functions ( I assume you mean a UDF) return value as a regular function. However, you code could be simplified and withOUT selections with worksheets("Agents") lr=.cells(rows.count,"a").end(xlup).row '====== lc=.cells(columns.count,"b").end(xltoleft).column 'or 'lc=activecell.column '======== .range(cells(2,1),cells(lr,lc).copy _ sheets("destinationsheet").range("a1") |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |