DavidCampbell
Programmer
I have a single table Excel 2003 sheet with 10 columns and a variable number of rows. I would like to find all lines in the used sheet area with an asterisk in column g. For each row found I want to assign two words to column h based on the contents of columns c and d.
Column c (DOW) contains a number from 1 to 5, representing Mon, Tue, Wed, Thur and Fri. Col d (WOM) contains a number from 1 to 4 representing the first, second, third or fourth week of the month.
On a given line, based on cols c & d, I want to assign the words, First Mondays or Third Wednesdays, etc. to col h. If the selected line (with an asterisk in col g) doesn't have numbers in cols c & d that are within range, I want to assign a blank (not null) to col h.
I'd like to use an array in the macro because I think that's the most efficient, but I'm at a loss as to how to attack it.
Any help with coding or ideas would be appreciated.
Thanks.
Column c (DOW) contains a number from 1 to 5, representing Mon, Tue, Wed, Thur and Fri. Col d (WOM) contains a number from 1 to 4 representing the first, second, third or fourth week of the month.
On a given line, based on cols c & d, I want to assign the words, First Mondays or Third Wednesdays, etc. to col h. If the selected line (with an asterisk in col g) doesn't have numbers in cols c & d that are within range, I want to assign a blank (not null) to col h.
I'd like to use an array in the macro because I think that's the most efficient, but I'm at a loss as to how to attack it.
Any help with coding or ideas would be appreciated.
Thanks.