Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy data from sheet2 to sheet1 when sheet2 has variable # of rows | Excel Discussion (Misc queries) | |||
DataVaildationList works in Sheet1, but does not in Sheet2; Why | Excel Discussion (Misc queries) | |||
How to find data in Sheet1 and list them in Sheet2 | Excel Programming | |||
How do I list all sums from sheet1 to sheet2? | Excel Worksheet Functions | |||
ComboBox list reliant on the entry from a different ComboBox | Excel Programming |