alishabbir
New Member
- Joined
- Dec 22, 2016
- Messages
- 4
Hello,
I am very new VBA user - like 1 week old and need some basic help in customizing the model I have built. The first tab (cover page) gives the user to select a date from drop down. On selecting Oct, FY17, I would like to achieve the following:
1. User selects Oct, FY17 from Cover page (this is a dynamic cell = "D7")
2. Macro goes on Sheet3 and looks for text as in "D7" in Row 9 cells F:P and changes the color of the cell which contains the same text as =D7 and the all cells preceding it in the range.
Ex: Cells F:P have Jul FY17, Aug FY17, Sep FY17, Oct FY17, Nov FY17..... So the macro would color the cell that has "Oct FY17" and the months before it.
3. Macro goes on Sheet3 and looks for text as in "D7" in Row 9 cells S:AD and HIDES cell which contains the same text as =D7 and the all cells preceding it in the range.
Ex: Cells S:AD have Jul FY17, Aug FY17, Sep FY17, Oct FY17, Nov FY17..... So the macro would HIDE the cell that has "Oct FY17" and the months before it.
The Macro runs on Sheet3 only. Now, if it does not hide or color the preceeding cells then it is fine as long as it hides and colors the right columns.
Thank you in advance.
I am very new VBA user - like 1 week old and need some basic help in customizing the model I have built. The first tab (cover page) gives the user to select a date from drop down. On selecting Oct, FY17, I would like to achieve the following:
1. User selects Oct, FY17 from Cover page (this is a dynamic cell = "D7")
2. Macro goes on Sheet3 and looks for text as in "D7" in Row 9 cells F:P and changes the color of the cell which contains the same text as =D7 and the all cells preceding it in the range.
Ex: Cells F:P have Jul FY17, Aug FY17, Sep FY17, Oct FY17, Nov FY17..... So the macro would color the cell that has "Oct FY17" and the months before it.
3. Macro goes on Sheet3 and looks for text as in "D7" in Row 9 cells S:AD and HIDES cell which contains the same text as =D7 and the all cells preceding it in the range.
Ex: Cells S:AD have Jul FY17, Aug FY17, Sep FY17, Oct FY17, Nov FY17..... So the macro would HIDE the cell that has "Oct FY17" and the months before it.
The Macro runs on Sheet3 only. Now, if it does not hide or color the preceeding cells then it is fine as long as it hides and colors the right columns.
Thank you in advance.