Dim myList as string
Dim LastRow as string
With worksheets("Sheet2")
lastrow = .range("H3").end(xldown).row
mylist = .range("H3:H" & lastrow).address(external:=true)
end with
I'd leave the workbook name, worksheet name, and address in that string. It
won't ever hurt and without it, you may have trouble.
"tkraju via OfficeKB.com" wrote:
this code is giving active sheet list.
LastRow = Range("H3").End(xlDown).Row
myList = Range(Cells(3, 8), Cells(LastRow, 14)).Address
what change is to be done to the above code if I want "sheet2 " list with
same parameters of above code.
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200905/1
--
Dave Peterson