Excel Macro to Populate a Range based on Info in Another Area of Workbook
by, 5th May 2012 at 01:46 AM (3335 Views)
Here is the input:
Activity, start week, end week
Based on the above info in the the first three columns of a spreadsheet, put a number or a string in the same row under the appropriate week number. So if an activity happens from week 18 (this week) to week 25, the corresponding columns would be filled with the number 1. So far I have not been able to figure out how to do this using macros. Seems pretty simple but I'm struggling since I have zero experience with Visual Basic and objects, methods, prodecures,etc.
I can get the desired result using Excel by putting the followiing statement in every column .... =IF(AND(week<=start,week>=stop), 1,""), where week, start, stop are defined ranges.
I tried to do the macro record but that doesn't yield a useful stating point
Total Trackbacks 0