Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
get data from one sheet list in another
Having problems with this vb to display a list of specific cell data from "Sites" sheet on "Addressing" sheet. Code: -------------------- Sub CreateSitesList() Sheets("Addressing").Range("V2:W40").ClearContents Lastrow = Sheets("Sites").Range("c65536").End(xlUp).Row For Each ce In Sheets("Sites").Range("C2:C" & Lastrow) On Error Resume Next nodupes.Add Item:=ce, key:=CStr(ce) Next ce For i = 1 To nodupes.Count Sheets("Addressing").Range("V2").Offset(i, 0).Value = nodupes(i) Sheets("Addressing").Range("V2").Offset(i, 1).Value = WorksheetFunction.CountIf(Sheets("Sites").Range("c 1:c" & Lastrow), nodupes(i)) Next i End Sub -------------------- -- swieduwi ------------------------------------------------------------------------ swieduwi's Profile: http://www.excelforum.com/member.php...o&userid=21962 View this thread: http://www.excelforum.com/showthread...hreadid=380191 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need help Taking alot data from one sheet (if not blank) and copying toa list on another sheet. | Excel Worksheet Functions | |||
how to compare a list of data that is same as the main data sheet | New Users to Excel | |||
List matching data from sheet 1 in sheet 2 | Excel Worksheet Functions | |||
adding data from one sheet to another sheet as a dropdown list bo. | Excel Discussion (Misc queries) | |||
copy data from a list to another sheet | Excel Programming |