Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
For Each in Range
I'm working on some code that will add names to a Mail To list. I have a worksheet that looks like the following (ignore the underscores): ________Report 1___Report 2___Report 3___Report 4 Bill_________X________X Joe________X__________________X Jim__________________X________X Bob________X__________________X_________X I set my all of my reports to a range, and my people to a range. Set RptRng = Range("B1", Selection.End(xlToRight)) Set MailRng = Range("A2", Selection.End(xlDown)) I'm trying to do some sort of: For Each Report in RptRng If ________ = "X" then add Person to MailToList I hope my explanation is good enough! Any help is greatly appreciated! DejaVu -- DejaVu ------------------------------------------------------------------------ DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629 View this thread: http://www.excelforum.com/showthread...hreadid=377159 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Range Question / error 1004: method Range of object Worksheet has failed | Excel Programming | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |