Hello Everyone,
I am new to the forum and looking forward to get some help on the excel question I have.
I have a file with 6 sheets on it. 5 worksheets are named with account codes (ABC, DEF, GHI, JKL, MNO) and 1 is a summary worksheet with the above account codes as columns and department code as row. The department codes are 123, 456, 789, 101112, 131415 and so on up to 50 departments.
The department codes are standard. Each worksheet (account codes) may have all 50 departments or less. For example Department code 123 may appear in all account codes worksheets or may appear only in ABC, JKL and not on the rest.
I have a macro click button (I dont have a macro yet) in sheet 1 with each department code listed on it. If I click button 123 (department code), I want macro to save the file with department: "123" and keep all 6 (summary and account codes) worksheets in the file with only data belonging to the department 123.
If department 123 is having data only in ABC and JKL, i want macro to save the file with summary sheet, ABC sheet and JKL sheet (since other worksheets are not having data belonging to department 123)
Is this something possible? or is there any better ay to do this, if not by using buttons?
Thanks for all the help. I am attaching a sample file