Can you write a VBA to do the following: In my excel sheet 'Booking' I have a calender…
- User
Can you write a VBA to do the following: In my excel sheet 'Booking' I have a calender in columns C to J showing the current month and the four other months after. In column C is the month and year formatted as mmm yy. For each month, the rows cells contains days of the month. Each Month will start with the first day of the month and end with the last day of the month.
In my excel sheet 'Booking', I have a drop down list box in A4. The value in sheet 'Booking' A4 will correspond to a header value in sheet 'WF Assets' A1:AN1 When I choose a value in sheet 'Booking' A4, I want to find the column with the equal value in 'WF Assets' A1:AN1 With the column found, for each date from row 2 downwards in the specific column find the day value in column D to J for the month value in column C in sheet 'Booking' and give the cell a red background.
- Assistant
- User
The VBA is giving the rred background to the cells in sheet "WF Assets" and not sheet "Bookings" : In my excel sheet 'Booking', I have a drop down list box in A4. The value in sheet 'Booking' A4 will correspond to a header value in sheet 'WF Assets' A1:AN1 When I choose a value in sheet 'Booking' A4, I want to find the column with the equal value in sheet 'WF Assets' A1:AN1 With the column found, for each date from row 2 downwards in the specific column of sheet 'WF Assets' A1:AN1 find the day value in column D to J for the month value in column C in sheet 'Booking' and give the cell a red background in sheet 'Booking'.
- Assistant
- User
- Assistant
- User
When checking the table in columns C to J in sheet 'Booking' the cells in column C are not blank. They represent the month. However, some of the rows in columns D to J are blank. Will this affect the code?
- Assistant