We help IT Professionals succeed at work.
Get Started

Excel VB Code Adjust for Splitting Into Separate Workbooks

186 Views
Last Modified: 2017-11-27
Hello,

Seeking assistance for developing a VB code to help automate a process.  The attached spreadsheet has an existing code that breaks into smaller, individual workbooks based on changes in the ID (column C).  This part of the code is running as expected.

Based on an update I need an update to the code that will do the following BEFORE the majority of the data is split up into separate workbooks:

In column C, if the number is 000060 and the manager (column K) is Washington, George, take all applicable rows and place in a new workbook called 000060E.

In column C, if the number is 000060 and the manager (column K) is Washington, Martha, take all applicable rows and place in a new workbook called 000060A.

The selected rows in both conditions would be removed from the master file so they do not appear when the main code to split out the rest of the IDs is ran.  The ID and the manager must match.  Any remaining 000060 that do not match the conditions mentioned would remain on the master file.  So once the overall code is ran I would end up with a workbook 000060, 000060E and 000060A saved in a specified network folder.

Way beyond my limited coding skills and hoping the VB code ninjas can help.  Thank you for any assistance!
EE-Sample.xlsm
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE