Sep 25, 2003 #1 sjh Programmer Oct 29, 2001 263 US Hi, How should I declare "c" in the following code? For Each c In wSystemData.Range("Scenario" 'do stuff Next c Thanks!
Hi, How should I declare "c" in the following code? For Each c In wSystemData.Range("Scenario" 'do stuff Next c Thanks!
Sep 25, 2003 #2 combo Technical User Jan 1, 2003 4,189 PL As Range. When you work with any combination of cells (also row, column or single cell) - this is always Range. combo Upvote 0 Downvote
As Range. When you work with any combination of cells (also row, column or single cell) - this is always Range. combo
Sep 26, 2003 #3 BrainB Technical User Aug 24, 2002 264 GB You have use a rather "lazy" line of code, which in full would be :- For Each c In wSystemData.Range("Scenario".Cells .... so you can use things like : x = c.Value Regards BrianB ** Let us know if you get something that works ! ================================ Upvote 0 Downvote
You have use a rather "lazy" line of code, which in full would be :- For Each c In wSystemData.Range("Scenario".Cells .... so you can use things like : x = c.Value Regards BrianB ** Let us know if you get something that works ! ================================