Can someone please help me.
I'm new to Excel and I am learning about Formulas but I know nothing about VBA and Macros.
I am creating a annual leave request spread sheet where users input there there requests for a wanted leave on the desired week of the year. I need to somehow perform the function (detailed below) for auditing purposes and wondered if someone could help me.
I have 53 identical worksheets (the only thing that is different is the name of the worksheet and the date - as each worksheet represents a week in the year).
I also have a 54th sheet called 'MASTER', which I would like to use to copy and paste certain data from sheets 1-53.
I would like to create a button on the MASTER sheet (Using VBA or Macro, sorry I don't know which it is) that performs the following tasks when pressed.
1. Clear all data from cells A5 to P10000 (this is important as everytime it is pressed it will copy paste updaeted data from sheets 1 to 53)... then
2. Look at the data entered from sheets 1 to 53 and copy paste rows (A7 to P300) from all sheets, but only those rows with the letter 'x' in the column 'P' from all sheets (*This is important for reasons listed below.). (Note: The headings for columns A to P for sheets 1-53 and the Master sheet are identical in every way).
3. When data is displayed on the MASTER Sheet, it needs to be sorted by column 'A' (a text column), then column 'B' (a text column), then column 'E' (a date column).
*The letter 'x' column P on sheets 1 to 53 denotes a confirmed booking for that week, if it doesn't have the letter 'x' in column P, then a request has been made but it can not be confirmed at this stage, therefore should not be added to the MASTER sheet.
One last thing I should mention is that not all cells in each row being copied and pasted across contain data, some may be blank as an individual may not reqeust leave for that particular day/cell. (I'm not sure if that makes a difference to the coding).
Thankyou for taking time to look at this. I would greatly appricaate anyone who could help me with this request.
Cris
Bookmarks