![]() |
search an array for values contained in another array
I have two workbooks, one named 'Reps' and the other named 'Dealers'. The
'Rep' workbook has a sheet for each rep (sheet name is the rep name). The 'Dealers' has a listing of 1000 dealers in column A and in column R there is a rep name for that dealer. I have created an array of sheet names ('sheetnames') in the 'Reps' workbook and I have also created an array of unique reps that are in Column R called 'repnames'. Now I want to lookup each rep name from the repnames array in the sheetnames array to see if that rep already has a sheet. If he doesn't have a sheet, then I need to make a copy a master sheet that is already formatted and name the new sheet with the rep name. What is the best way to accomplish the above? Many thanks for a prompt response! |
All times are GMT +1. The time now is 05:04 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com