Good morning. I have a master workbook that contains two columns with headers; client names (column A) and the number of approved miles (column B). I need to copy those two columns and paste them automatically in a new excel workbook. The code I currently have in my master workbook is as follows:
The code works great for copying from my master and pasting into a newly created workbook. Now I can't figure out how to do the following in the newly created workbook:![]()
Please Login or Register to view this content.
- add two new column headers in column C (mileage on time card) & D (overage)
- automatically adjust the column width to fit the content
- add the following function to column D =SUM(B2-C2) and only show the value if it's a negative number
Here is a sample of the workbook I'm creating. Thanks in advance for feedback.
Mileage Approval Dummy Worksheet.xlsm
Bookmarks